summaryrefslogtreecommitdiff
path: root/basegfx/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-01-12 22:26:20 +0100
committerJulien Nabet <serval2412@yahoo.fr>2014-01-12 22:26:20 +0100
commita14b4d2dfdadf25ed1fa1b75f959e8817036a86e (patch)
tree1337d21731a82a13f98914b831f0f14bc9bf7235 /basegfx/source
parentdf1005452c32482e4fa4c312b9dcb9418519f63f (diff)
cppcheck: fix some redundantAssignment
Change-Id: I9ea73bada743b195d778b17038137e9089d03404
Diffstat (limited to 'basegfx/source')
-rw-r--r--basegfx/source/polygon/b2dtrapezoid.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dtrapezoid.cxx b/basegfx/source/polygon/b2dtrapezoid.cxx
index dc3658798ef9..6c9895953a2e 100644
--- a/basegfx/source/polygon/b2dtrapezoid.cxx
+++ b/basegfx/source/polygon/b2dtrapezoid.cxx
@@ -406,10 +406,9 @@ namespace basegfx
B2DPoint* pNewPoint = bAIsLonger
? maNewPoints.allocatePoint(aEdgeA.getStart() + (fCutA * aDeltaA))
: maNewPoints.allocatePoint(aEdgeB.getStart() + (fCutB * aDeltaB));
- bool bRetval = false;
// try to split both edges
- bRetval = splitEdgeAtGivenPoint(aEdgeA, *pNewPoint, aCurrent);
+ bool bRetval = splitEdgeAtGivenPoint(aEdgeA, *pNewPoint, aCurrent);
bRetval |= splitEdgeAtGivenPoint(aEdgeB, *pNewPoint, aCurrent);
if(!bRetval)