From c34a5ec1a60510871bf62ab380536d82078bb53d Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 30 Mar 2013 16:12:46 +0100 Subject: [PATCH] Prefer prefix ++/-- operators for non-primitive types Change-Id: Ibf5004c1e66edac10ec6392577fe26ea2aaed330 --- toolkit/source/controls/tree/treedatamodel.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkit/source/controls/tree/treedatamodel.cxx b/toolkit/source/controls/tree/treedatamodel.cxx index 43e26c4dc127..90fe37d6d844 100644 --- a/toolkit/source/controls/tree/treedatamodel.cxx +++ b/toolkit/source/controls/tree/treedatamodel.cxx @@ -423,7 +423,7 @@ void SAL_CALL MutableTreeNode::insertChildByIndex( sal_Int32 nChildIndex, const TreeNodeVector::iterator aIter( maChildren.begin() ); while( (nChildIndex-- > 0) && (aIter != maChildren.end()) ) - aIter++; + ++aIter; maChildren.insert( aIter, xImpl ); xImpl->setParent( this ); @@ -443,7 +443,7 @@ void SAL_CALL MutableTreeNode::removeChildByIndex( sal_Int32 nChildIndex ) throw { TreeNodeVector::iterator aIter( maChildren.begin() ); while( nChildIndex-- && (aIter != maChildren.end()) ) - aIter++; + ++aIter; if( aIter != maChildren.end() ) {