basegfx/source/polygon/b2dpolygonclipper.cxx | 3 ++- sw/source/filter/ww8/ww8graf.cxx | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-)
New commits: commit 91b1f91ca7d41a79647a0bca40fed276ec51c859 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Aug 29 21:02:27 2024 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Aug 30 12:36:04 2024 +0200 cid#1607414 silence Overflowed constant Change-Id: Ie52e2acd26494229ee6b0874c91e240eab9f8c47 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172633 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx index e2f1f060381e..7453c0a823ba 100644 --- a/basegfx/source/polygon/b2dpolygonclipper.cxx +++ b/basegfx/source/polygon/b2dpolygonclipper.cxx @@ -103,7 +103,8 @@ namespace basegfx::utils if(bInside) { - if(!aRun.count() || !aRun.getB2DPoint(aRun.count() - 1).equal(aEdge.getStartPoint())) + const sal_uInt16 nRunCount = aRun.count(); + if (!nRunCount || !aRun.getB2DPoint(nRunCount - 1).equal(aEdge.getStartPoint())) { aRun.append(aEdge.getStartPoint()); } commit 6d98bd5695e87019caebd02929231f3b0c6e9f35 Author: Caolán McNamara <[email protected]> AuthorDate: Thu Aug 29 21:06:33 2024 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Aug 30 12:35:57 2024 +0200 cid#1608060 silence Overflowed constant Change-Id: Ica2563ab6dc6d00f694965cd2353c29ea4e3fe8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172632 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 9f7a69426c8f..d499e22fac31 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -3322,12 +3322,12 @@ void SwWW8FltAnchorStack::AddAnchor(const SwPosition& rPos, SwFrameFormat *pForm void SwWW8FltAnchorStack::Flush() { size_t nCnt = size(); - for (size_t i=0; i < nCnt; ++i) + while (nCnt) { - SwFltStackEntry &rEntry = (*this)[i]; + SwFltStackEntry &rEntry = (*this)[0]; SwPosition aDummy(rEntry.m_aMkPos.m_nNode); SetAttrInDoc(aDummy, rEntry); - DeleteAndDestroy(i--); + DeleteAndDestroy(0); --nCnt; } }
