diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 15:09:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-19 19:27:56 +0200 |
commit | 16da5e2cc9add87aa44783af270f63de01e7ced4 (patch) | |
tree | 618685108d80e908e36176357260688ab9ba67b0 /basegfx/source | |
parent | c31fa068ad430746d47ce53e2321ac3302dcb8bb (diff) |
loplugin:constvars in accessibility..basegfx
Change-Id: Id6a0b48c3440be394419e87bd7a4f63bd0a1e758
Reviewed-on: https://gerrit.libreoffice.org/77721
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/source')
-rw-r--r-- | basegfx/source/polygon/b2dpolygonclipper.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolygoncutandtouch.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygoncutter.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/polygon/b2dtrapezoid.cxx | 2 | ||||
-rw-r--r-- | basegfx/source/tools/systemdependentdata.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx index d21ce300ee87..9d672b4397c0 100644 --- a/basegfx/source/polygon/b2dpolygonclipper.cxx +++ b/basegfx/source/polygon/b2dpolygonclipper.cxx @@ -796,7 +796,7 @@ namespace basegfx else { // the last triangle has not been altered, simply copy to result - for(basegfx::B2DPoint & i : stack) + for(const basegfx::B2DPoint & i : stack) aResult.append(i); } } diff --git a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx index 9240f1e36577..0fd59291604e 100644 --- a/basegfx/source/polygon/b2dpolygoncutandtouch.cxx +++ b/basegfx/source/polygon/b2dpolygoncutandtouch.cxx @@ -411,7 +411,7 @@ namespace basegfx } // append remapped tempVector entries for edge to tempPoints for edge - for(temporaryPoint & rTempPoint : aTempPointVectorEdge) + for(const temporaryPoint & rTempPoint : aTempPointVectorEdge) { rTempPointsB.emplace_back(rTempPoint.getPoint(), nIndB, rTempPoint.getCut()); } diff --git a/basegfx/source/polygon/b2dpolypolygoncutter.cxx b/basegfx/source/polygon/b2dpolypolygoncutter.cxx index beb0136912fd..0ea1e8b9b863 100644 --- a/basegfx/source/polygon/b2dpolypolygoncutter.cxx +++ b/basegfx/source/polygon/b2dpolypolygoncutter.cxx @@ -1037,7 +1037,7 @@ namespace basegfx B2DPolyPolygonVector aResult; aResult.reserve(aInput.size()); - for(basegfx::B2DPolyPolygon & a : aInput) + for(const basegfx::B2DPolyPolygon & a : aInput) { const basegfx::B2DPolyPolygon aCandidate(prepareForPolygonOperation(a)); diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx index 3997feed01eb..ec3d037e6aa8 100644 --- a/basegfx/source/polygon/b2dtrapezoid.cxx +++ b/basegfx/source/polygon/b2dtrapezoid.cxx @@ -424,7 +424,7 @@ namespace basegfx // there were horizontal edges. These can be excluded, but // cuts with other edges need to be solved and added before // ignoring them - for(TrDeSimpleEdge & rHorEdge : rTrDeSimpleEdges) + for(const TrDeSimpleEdge & rHorEdge : rTrDeSimpleEdges) { // get horizontal edge as candidate; prepare its range and fixed Y const B1DRange aRange(rHorEdge.getStart().getX(), rHorEdge.getEnd().getX()); diff --git a/basegfx/source/tools/systemdependentdata.cxx b/basegfx/source/tools/systemdependentdata.cxx index 61fa9dfe7826..2c1c173eff96 100644 --- a/basegfx/source/tools/systemdependentdata.cxx +++ b/basegfx/source/tools/systemdependentdata.cxx @@ -137,7 +137,7 @@ namespace basegfx SystemDependentDataHolder::~SystemDependentDataHolder() { - for(auto& candidate : maSystemDependentReferences) + for(const auto& candidate : maSystemDependentReferences) { basegfx::SystemDependentData_SharedPtr aData(candidate.second.lock()); |