summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-11 14:37:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-12 13:06:26 +0200
commitd028c1be17c484fef8617490b46c66100b0e25bc (patch)
tree672ecc470737039f36558166112e3287a08e83bd /basegfx
parent11e381c527ebd440e4d64d19a5bc27bdc9ea70fc (diff)
loplugin:sequentialassign in accessiblity..canvas
Change-Id: I984717138ac85c1af5fc363fda06f5c2b5497965 Reviewed-on: https://gerrit.libreoffice.org/70641 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolygonclipper.cxx6
-rw-r--r--basegfx/source/tools/numbertools.cxx3
-rw-r--r--basegfx/source/vector/b3dvector.cxx3
3 files changed, 4 insertions, 8 deletions
diff --git a/basegfx/source/polygon/b2dpolygonclipper.cxx b/basegfx/source/polygon/b2dpolygonclipper.cxx
index f734a4594382..d21ce300ee87 100644
--- a/basegfx/source/polygon/b2dpolygonclipper.cxx
+++ b/basegfx/source/polygon/b2dpolygonclipper.cxx
@@ -453,7 +453,6 @@ namespace basegfx
}
// area clipping
- B2DPolyPolygon aMergePolyPolygonA(rClip);
// First solve all polygon-self and polygon-polygon intersections.
// Also get rid of some not-needed polygons (neutral, no area -> when
@@ -461,7 +460,7 @@ namespace basegfx
// Now it is possible to correct the orientations in the cut-free
// polygons to values corresponding to painting the utils::PolyPolygon with
// a XOR-WindingRule.
- aMergePolyPolygonA = solveCrossovers(aMergePolyPolygonA);
+ B2DPolyPolygon aMergePolyPolygonA = solveCrossovers(rClip);
aMergePolyPolygonA = stripNeutralPolygons(aMergePolyPolygonA);
aMergePolyPolygonA = correctOrientations(aMergePolyPolygonA);
@@ -472,10 +471,9 @@ namespace basegfx
aMergePolyPolygonA.flip();
}
- B2DPolyPolygon aMergePolyPolygonB(rCandidate);
// prepare 2nd source polygon in same way
- aMergePolyPolygonB = solveCrossovers(aMergePolyPolygonB);
+ B2DPolyPolygon aMergePolyPolygonB = solveCrossovers(rCandidate);
aMergePolyPolygonB = stripNeutralPolygons(aMergePolyPolygonB);
aMergePolyPolygonB = correctOrientations(aMergePolyPolygonB);
diff --git a/basegfx/source/tools/numbertools.cxx b/basegfx/source/tools/numbertools.cxx
index 2fb7ca8c898d..031bef3ba6e1 100644
--- a/basegfx/source/tools/numbertools.cxx
+++ b/basegfx/source/tools/numbertools.cxx
@@ -38,8 +38,7 @@ namespace basegfx { namespace utils
sal_Int32(0)) * (1.0+fSpace);
for( sal_Int32 i=0; i<aNum.getLength(); ++i )
{
- B2DPolyPolygon aCurr;
- aCurr=createSevenSegmentPolyPolygon(aNum[i],
+ B2DPolyPolygon aCurr=createSevenSegmentPolyPolygon(aNum[i],
bLitSegments);
aMat.identity();
diff --git a/basegfx/source/vector/b3dvector.cxx b/basegfx/source/vector/b3dvector.cxx
index fc20d37494b3..22a7c6220960 100644
--- a/basegfx/source/vector/b3dvector.cxx
+++ b/basegfx/source/vector/b3dvector.cxx
@@ -48,8 +48,7 @@ namespace basegfx
B3DVector B3DVector::getPerpendicular(const B3DVector& rNormalizedVec) const
{
- B3DVector aNew(*this);
- aNew = cross(aNew, rNormalizedVec);
+ B3DVector aNew = cross(*this, rNormalizedVec);
aNew.normalize();
return aNew;
}