summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2013-03-30 18:01:52 +0100
committerJulien Nabet <serval2412@yahoo.fr>2013-03-30 18:23:37 +0100
commit6d8416c8b4f1deb76a0598842b5c68dd7621ea62 (patch)
tree3796b4f3228239671761e6aa428334ce64181700 /sd
parentbdc6b41fa6b15a051d2996b745b43ce077e8c8d7 (diff)
Prefer prefix ++/-- operators for non-primitive types
Change-Id: I98d8c5982b42b2f3283c50cf1da11331040ab884
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptexanimations.cxx11
1 files changed, 4 insertions, 7 deletions
diff --git a/sd/source/filter/eppt/pptexanimations.cxx b/sd/source/filter/eppt/pptexanimations.cxx
index 7467d0de86a0..8345a12e6a7c 100644
--- a/sd/source/filter/eppt/pptexanimations.cxx
+++ b/sd/source/filter/eppt/pptexanimations.cxx
@@ -411,30 +411,27 @@ void AnimationExporter::processAfterEffectNodes( const Reference< XAnimationNode
bool AnimationExporter::isAfterEffectNode( const Reference< XAnimationNode >& xNode ) const
{
- std::list< AfterEffectNodePtr >::const_iterator aIter( maAfterEffectNodes.begin() );
const std::list< AfterEffectNodePtr >::const_iterator aEnd( maAfterEffectNodes.end() );
- while( aIter != aEnd )
+ for (std::list< AfterEffectNodePtr >::const_iterator aIter( maAfterEffectNodes.begin() );
+ aIter != aEnd ; ++aIter)
{
if( (*aIter)->mxNode == xNode )
return true;
- aIter++;
}
-
return false;
}
bool AnimationExporter::hasAfterEffectNode( const Reference< XAnimationNode >& xNode, Reference< XAnimationNode >& xAfterEffectNode ) const
{
- std::list< AfterEffectNodePtr >::const_iterator aIter( maAfterEffectNodes.begin() );
const std::list< AfterEffectNodePtr >::const_iterator aEnd( maAfterEffectNodes.end() );
- while( aIter != aEnd )
+ for (std::list< AfterEffectNodePtr >::const_iterator aIter( maAfterEffectNodes.begin() );
+ aIter != aEnd ; ++aIter)
{
if( (*aIter)->mxMaster == xNode )
{
xAfterEffectNode = (*aIter)->mxNode;
return true;
}
- aIter++;
}
return false;