summaryrefslogtreecommitdiff
path: root/editeng/source/uno/unotext2.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-24 13:37:16 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-24 14:26:01 +0000
commit5ab56929680ec6613df3d9cb5cf7c3d75d50990d (patch)
tree5658adeb1bf13f58d1a5290efa70974f417ba0c7 /editeng/source/uno/unotext2.cxx
parent64f593061ba0e79d83b901aa1cc42edc5916f801 (diff)
cppcheck: prefer prefix variant
Diffstat (limited to 'editeng/source/uno/unotext2.cxx')
-rw-r--r--editeng/source/uno/unotext2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/uno/unotext2.cxx b/editeng/source/uno/unotext2.cxx
index 5a1132fb23ea..2b866cb6a84b 100644
--- a/editeng/source/uno/unotext2.cxx
+++ b/editeng/source/uno/unotext2.cxx
@@ -93,7 +93,7 @@ uno::Any SvxUnoTextContentEnumeration::nextElement(void) throw( container::NoSuc
const SvxUnoTextRangeBaseList& rRanges( mpEditSource->getRanges() );
SvxUnoTextRangeBaseList::const_iterator aIter;
- for( aIter = rRanges.begin(); (aIter != rRanges.end()) && (pContent == 0); aIter++ )
+ for( aIter = rRanges.begin(); (aIter != rRanges.end()) && (pContent == 0); ++aIter )
{
SvxUnoTextContent* pIterContent = dynamic_cast< SvxUnoTextContent* >( (*aIter ) );
if( pIterContent && (pIterContent->mnParagraph == mnNextParagraph) )
@@ -463,7 +463,7 @@ uno::Any SAL_CALL SvxUnoTextRangeEnumeration::nextElement()
SvxUnoTextRange* pRange = 0;
SvxUnoTextRangeBaseList::const_iterator aIter;
- for( aIter = rRanges.begin(); (aIter != rRanges.end()) && (pRange == 0); aIter++ )
+ for( aIter = rRanges.begin(); (aIter != rRanges.end()) && (pRange == 0); ++aIter )
{
SvxUnoTextRange* pIterRange = dynamic_cast< SvxUnoTextRange* >( (*aIter ) );
if( pIterRange && pIterRange->mbPortion && (aSel.IsEqual( pIterRange->maSelection ) ) )