diff options
author | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-09-29 21:15:41 +0200 |
---|---|---|
committer | Pierre-André Jacquod <pjacquod@alumni.ethz.ch> | 2011-10-07 15:57:37 +0200 |
commit | 26b17d5c2c1d20cbed051ff1b830a4ea9504d6d8 (patch) | |
tree | 273272cd1f0f8f08fea6a90b044884580e14bd67 /sd | |
parent | f087747a58458bbfc08401281aa868c05281224a (diff) |
cppcheck scope reduction in sd/... CustomAnimationList.cxx
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationList.cxx | 4 |
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; |