diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-27 20:54:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-28 10:31:26 +0000 |
commit | 17a0efcea50be5c9adf33639cfd47d9a90b2f742 (patch) | |
tree | a25691acabffd6168e08887a85984a6a9a381947 /basegfx/source | |
parent | d54775f2c2146e1687140554bd903cc38be00054 (diff) |
coverity#1242792 Unused value
Change-Id: Iec4c69e7fea727cc507506b9570f1f6d0c20a70f
Diffstat (limited to 'basegfx/source')
-rw-r--r-- | basegfx/source/polygon/b2dpolygontools.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index eb6f210cf910..d5bbcf7505ea 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -3416,7 +3416,9 @@ namespace basegfx { // prepare loop bool bControlA(false); +#if defined SAL_LOG_WARN bool bControlB(false); +#endif // get next point and flag aNewCoordinatePair = B2DPoint(pPointSequence->X, pPointSequence->Y); @@ -3437,7 +3439,9 @@ namespace basegfx if(b < nCount && com::sun::star::drawing::PolygonFlags_CONTROL == ePolygonFlag) { aControlB = aNewCoordinatePair; +#if defined SAL_LOG_WARN bControlB = true; +#endif // get next point and flag aNewCoordinatePair = B2DPoint(pPointSequence->X, pPointSequence->Y); @@ -3462,7 +3466,10 @@ namespace basegfx && aControlA.equal(aControlB) && aControlA.equal(aRetval.getB2DPoint(aRetval.count() - 1))) { - bControlA = bControlB = false; + bControlA = false; +#if defined SAL_LOG_WARN + bControlB = false; +#endif } if(bControlA) |