[Libreoffice-commits] .: sd/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sat Nov 27 13:18:26 PST 2010
sd/source/ui/animations/CustomAnimationPane.cxx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
New commits:
commit 69763b5bc6e15ee29322d89d12d28575b0882d66
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Nov 27 16:50:57 2010 +0000
cppcheck: use prefix form
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index f537041..0255929 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -262,7 +262,7 @@ CustomAnimationPane::~CustomAnimationPane()
MotionPathTagVector aTags;
aTags.swap( maMotionPathTags );
MotionPathTagVector::iterator aIter;
- for( aIter = aTags.begin(); aIter != aTags.end(); aIter++ )
+ for( aIter = aTags.begin(); aIter != aTags.end(); ++aIter )
(*aIter)->Dispose();
delete mpFLModify;
@@ -958,7 +958,7 @@ static bool updateMotionPathImpl( CustomAnimationPane& rPane, ::sd::View& rView,
rtl::Reference< MotionPathTag > xMotionPathTag;
// first try to find if there is already a tag for this
MotionPathTagVector::iterator aMIter( rOldTags.begin() );
- for( ; aMIter != rOldTags.end(); aMIter++ )
+ for( ; aMIter != rOldTags.end(); ++aMIter )
{
rtl::Reference< MotionPathTag > xTag( (*aMIter) );
if( xTag->getEffect() == pEffect )
@@ -1896,7 +1896,7 @@ void CustomAnimationPane::onChange( bool bCreate )
aParaTarget.Shape = xShape;
std::list< sal_Int16 >::iterator aIter( aParaList.begin() );
- for( ; aIter != aParaList.end(); aIter++ )
+ for( ; aIter != aParaList.end(); ++aIter )
{
aParaTarget.Paragraph = (*aIter);
aTargets.push_back( makeAny( aParaTarget ) );
@@ -1945,7 +1945,7 @@ void CustomAnimationPane::onChange( bool bCreate )
std::vector< Any >::iterator aIter( aTargets.begin() );
const std::vector< Any >::iterator aEnd( aTargets.end() );
bool bFirst = true;
- for( ; aIter != aEnd; aIter++ )
+ for( ; aIter != aEnd; ++aIter )
{
CustomAnimationEffectPtr pCreated = mpMainSequence->append( pDescriptor, (*aIter), fDuration );
@@ -2270,9 +2270,9 @@ void CustomAnimationPane::moveSelection( bool bUp )
if( aInsertPos != rEffectSequence.begin() )
{
- aInsertPos--;
+ --aInsertPos;
while( (aInsertPos != rEffectSequence.begin()) && !mpCustomAnimationList->isExpanded(*aInsertPos))
- aInsertPos--;
+ --aInsertPos;
rEffectSequence.insert( aInsertPos, pEffect );
}
@@ -2300,9 +2300,9 @@ void CustomAnimationPane::moveSelection( bool bUp )
if( aInsertPos != rEffectSequence.end() )
{
- aInsertPos++;
+ ++aInsertPos;
while( (aInsertPos != rEffectSequence.end()) && !mpCustomAnimationList->isExpanded(*aInsertPos))
- aInsertPos++;
+ ++aInsertPos;
rEffectSequence.insert( aInsertPos, pEffect );
}
@@ -2332,7 +2332,7 @@ void CustomAnimationPane::onPreview( bool bForcePreview )
{
rtl::Reference< MotionPathTag > xMotionPathTag;
MotionPathTagVector::iterator aIter;
- for( aIter = maMotionPathTags.begin(); aIter != maMotionPathTags.end(); aIter++ )
+ for( aIter = maMotionPathTags.begin(); aIter != maMotionPathTags.end(); ++aIter )
{
if( (*aIter)->isSelected() )
{
More information about the Libreoffice-commits
mailing list