svx/source/svdraw/svdobj.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 012a1cf4deccef82e5b7a8dfffa4c3d49a796a8d Author: Jan Luethi <[email protected]> AuthorDate: Sat Feb 21 15:07:50 2026 +0100 Commit: Ilmari Lauhakangas <[email protected]> CommitDate: Sat Feb 21 17:29:58 2026 +0100 tdf#145538 Use range based for loop in svdobj.cxx Change-Id: I725074414072983c4db0c6a78c3b4d68d55e5380 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199943 Reviewed-by: Ilmari Lauhakangas <[email protected]> Tested-by: Jenkins diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index 4d49f442e302..9783630cdf03 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -1268,18 +1268,17 @@ basegfx::B2DPolyPolygon SdrObject::TakeContour() const drawinglayer::processor2d::ContourExtractor2D aExtractor(aViewInformation2D, false); aExtractor.process(xSequence); const basegfx::B2DPolyPolygonVector& rResult(aExtractor.getExtractedContour()); - const sal_uInt32 nSize(rResult.size()); // when count is one, it is implied that the object has only its normal // contour anyways and TakeContour() is to return an empty PolyPolygon // (see old implementation for historical reasons) - if(nSize > 1) + if(rResult.size() > 1) { // the topology for contour is correctly a vector of PolyPolygons; for // historical reasons cut it back to a single tools::PolyPolygon here - for(sal_uInt32 a(0); a < nSize; a++) + for (auto const &rPoly : rResult) { - aRetval.append(rResult[a]); + aRetval.append(rPoly); } } }
