[Libreoffice-commits] core.git: basegfx/source
Norbert Thiebaud
nthiebaud at gmail.com
Sun Jan 19 21:41:28 PST 2014
basegfx/source/polygon/b2dpolygontools.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 14242287e4af168af216f4f3a4491143e9e50a42
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Sun Jan 19 23:40:46 2014 -0600
coverity#1130188 Logically dead code
Change-Id: I56b58f76adc820371677a79991ad588a6d78adc7
diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx
index 0cf0a37..1ab9d80 100644
--- a/basegfx/source/polygon/b2dpolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolygontools.cxx
@@ -3551,7 +3551,7 @@ namespace basegfx
if(bCurve)
{
// calculate target point count
- const sal_uInt32 nLoopCount(bClosed ? nPointCount : (nPointCount ? nPointCount - 1 : 0));
+ const sal_uInt32 nLoopCount(bClosed ? nPointCount : nPointCount - 1);
if(nLoopCount)
{
More information about the Libreoffice-commits
mailing list