summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-12 11:45:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-12 11:47:49 +0200
commit738f143f870b632fd1061123c53a607041c5892e (patch)
tree5b6b4fc264b50f8d37b77b5c80dc45062194cba5 /drawinglayer
parentda5f77b001837c0660197b3ae80f1146eab8b200 (diff)
fTexHeightPos shall be incremented across loop iterations
Regression introduced with 92c8d74c543aa94cd512369072975dca7006d5b3 "CppCheck : reduce variables scope," found by clang-analyzer-deadcode.DeadStores. Change-Id: I3758a9827d4d242d4fd57af7bbb77decf2d0f327
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
index 1e594a0b8daa..a1c27c9f5d26 100644
--- a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
@@ -635,9 +635,9 @@ namespace drawinglayer
if(nLoopCount)
{
+ double fTexHeightPos(0.0);
for(a = 0L; a < nLoopCount; a++)
{
- double fTexHeightPos(0.0);
const Slice3D& rSliceA(rSliceVector[a]);
const Slice3D& rSliceB(rSliceVector[(a + 1L) % nNumSlices]);
const bool bAcceptPair(SLICETYPE3D_REGULAR == rSliceA.getSliceType() && SLICETYPE3D_REGULAR == rSliceB.getSliceType());