[Libreoffice-commits] .: editeng/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sat Jan 1 13:28:44 PST 2011
editeng/source/uno/unotext.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit cdfea0d5ff955feb6ba51f77fe510d934e1dacee
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Jan 1 21:28:38 2011 +0000
cppcheck: prefer prefix variant
diff --git a/editeng/source/uno/unotext.cxx b/editeng/source/uno/unotext.cxx
index 5183991..3acc7fe 100644
--- a/editeng/source/uno/unotext.cxx
+++ b/editeng/source/uno/unotext.cxx
@@ -213,7 +213,7 @@ void check_me::add( SvxUnoTextRangeBase* pRange )
void check_me::remove( SvxUnoTextRangeBase* pRange )
{
std::list< std::pair< sal_uInt32, SvxUnoTextRangeBase* > >::iterator aIter;
- for( aIter = maRanges.begin(); aIter != maRanges.end(); aIter++ )
+ for( aIter = maRanges.begin(); aIter != maRanges.end(); ++aIter )
{
if( pRange == (*aIter).second )
{
@@ -229,7 +229,7 @@ check_me::~check_me()
{
DBG_ERROR("living text range detected!");
std::list< std::pair< sal_uInt32, SvxUnoTextRangeBase* > >::iterator aIter;
- for( aIter = maRanges.begin(); aIter != maRanges.end(); aIter++ )
+ for( aIter = maRanges.begin(); aIter != maRanges.end(); ++aIter )
{
sal_Int32 nAllocNum;
SvxUnoTextRangeBase* pRange;
More information about the Libreoffice-commits
mailing list