diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 17:31:57 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-10-07 17:51:38 +0200 |
commit | 9c8601416ce87ed2fdebbf3eb8059deb0c9a9f18 (patch) | |
tree | 83067d81f324e0b2793e828afd2eae7d6a38ebc6 /svx | |
parent | 981ae9f89a2762fb36fe0ac3fee6826f11425de3 (diff) |
clang-analyzer-deadcode.DeadStores
Change-Id: Idebc9fabd8110dcd82c8cab7c5c7300e4c2c6f1d
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index d0f2e0025856..a1e42f3a3edf 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -1262,9 +1262,8 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const Point& rPt1, long nAngle1, const Rec aXP1.Insert(XPOLY_APPEND,aXP2[nNum],XPOLY_NORMAL); } sal_uInt16 nPointCount=aXP1.GetPointCount(); - char cForm=0; + char cForm; if (bInfo || pnQuality!=NULL) { - cForm='?'; if (nPointCount==2) cForm='I'; else if (nPointCount==3) cForm='L'; else if (nPointCount==4) { // Z or U @@ -1305,6 +1304,10 @@ XPolygon SdrEdgeObj::ImpCalcEdgeTrack(const Point& rPt1, long nAngle1, const Rec } } } + else + { + cForm = 0; + } if (pnQuality!=NULL) { sal_uIntPtr nQual=0; sal_uIntPtr nQual0=nQual; // prevent overruns |