summaryrefslogtreecommitdiffstats
path: root/sd
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-29 21:15:41 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:37 +0200
commit26b17d5c2c1d20cbed051ff1b830a4ea9504d6d8 (patch)
tree273272cd1f0f8f08fea6a90b044884580e14bd67 /sd
parentcppcheck reduce scope of var in sd/ pptin.cxx (diff)
downloadcore-26b17d5c2c1d20cbed051ff1b830a4ea9504d6d8.tar.gz
core-26b17d5c2c1d20cbed051ff1b830a4ea9504d6d8.zip
cppcheck scope reduction in sd/... CustomAnimationList.cxx
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index 66488fbb57fe..55f54d65d58f 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -600,9 +600,7 @@ void CustomAnimationList::update()
long nFirstVis = -1;
long nLastVis = -1;
long nFirstSelOld = -1;
- long nFirstSelNew = -1;
long nLastSelOld = -1;
- long nLastSelNew = -1;
bool bMoved = false;
bool bMovedUp = false;
bool bMovedDown = false;
@@ -655,6 +653,8 @@ void CustomAnimationList::update()
clear();
if( mpMainSequence.get() )
{
+ long nFirstSelNew = -1;
+ long nLastSelNew = -1;
std::for_each( mpMainSequence->getBegin(), mpMainSequence->getEnd(), stl_append_effect_func( *this ) );
mpLastParentEntry = 0;