Kaydet (Commit) 26b17d5c authored tarafından Pierre-André Jacquod's avatar Pierre-André Jacquod

cppcheck scope reduction in sd/... CustomAnimationList.cxx

üst f087747a
...@@ -600,9 +600,7 @@ void CustomAnimationList::update() ...@@ -600,9 +600,7 @@ void CustomAnimationList::update()
long nFirstVis = -1; long nFirstVis = -1;
long nLastVis = -1; long nLastVis = -1;
long nFirstSelOld = -1; long nFirstSelOld = -1;
long nFirstSelNew = -1;
long nLastSelOld = -1; long nLastSelOld = -1;
long nLastSelNew = -1;
bool bMoved = false; bool bMoved = false;
bool bMovedUp = false; bool bMovedUp = false;
bool bMovedDown = false; bool bMovedDown = false;
...@@ -655,6 +653,8 @@ void CustomAnimationList::update() ...@@ -655,6 +653,8 @@ void CustomAnimationList::update()
clear(); clear();
if( mpMainSequence.get() ) if( mpMainSequence.get() )
{ {
long nFirstSelNew = -1;
long nLastSelNew = -1;
std::for_each( mpMainSequence->getBegin(), mpMainSequence->getEnd(), stl_append_effect_func( *this ) ); std::for_each( mpMainSequence->getBegin(), mpMainSequence->getEnd(), stl_append_effect_func( *this ) );
mpLastParentEntry = 0; mpLastParentEntry = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment