summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorMichaël Lefèvre <lefevre00@yahoo.fr>2015-09-21 15:11:57 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-09-23 07:29:33 +0000
commit92c8d74c543aa94cd512369072975dca7006d5b3 (patch)
treeeb7fe0edfa601a3062f3756274b26502021cdf69 /drawinglayer
parent3e27df1035677c7cca5200858d5d8e8283bf7aa9 (diff)
CppCheck : reduce variables scope
Change-Id: Ief402017b693a4337f330fb07bb7a6dc6e749f72 Reviewed-on: https://gerrit.libreoffice.org/18753 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
index 56e8b55684f0..497d21abb6a0 100644
--- a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
@@ -596,9 +596,6 @@ namespace drawinglayer
// tetxture parameters
double fInvTexHeight(1.0);
- double fTexHeightPos(0.0);
- double fTexStart(0.0);
- double fTexStop(1.0);
::std::vector<double> aTexHeightArray;
basegfx::B3DRange aTexRangeFront;
basegfx::B3DRange aTexRangeBack;
@@ -640,6 +637,7 @@ namespace drawinglayer
{
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());
@@ -648,6 +646,9 @@ namespace drawinglayer
if(bAcceptPair)
{
+ double fTexStart(0.0);
+ double fTexStop(1.0);
+
if(bCreateNormals)
{
impCreateInBetweenNormals(aPolB, aPolA, bSmoothHorizontalNormals);