Prefer prefix ++/-- operators for non-primitive types

Change-Id: Ibf5004c1e66edac10ec6392577fe26ea2aaed330
This commit is contained in:
Julien Nabet
2013-03-30 16:12:46 +01:00
parent bca67a76b0
commit c34a5ec1a6

View File

@@ -423,7 +423,7 @@ void SAL_CALL MutableTreeNode::insertChildByIndex( sal_Int32 nChildIndex, const
TreeNodeVector::iterator aIter( maChildren.begin() ); TreeNodeVector::iterator aIter( maChildren.begin() );
while( (nChildIndex-- > 0) && (aIter != maChildren.end()) ) while( (nChildIndex-- > 0) && (aIter != maChildren.end()) )
aIter++; ++aIter;
maChildren.insert( aIter, xImpl ); maChildren.insert( aIter, xImpl );
xImpl->setParent( this ); xImpl->setParent( this );
@@ -443,7 +443,7 @@ void SAL_CALL MutableTreeNode::removeChildByIndex( sal_Int32 nChildIndex ) throw
{ {
TreeNodeVector::iterator aIter( maChildren.begin() ); TreeNodeVector::iterator aIter( maChildren.begin() );
while( nChildIndex-- && (aIter != maChildren.end()) ) while( nChildIndex-- && (aIter != maChildren.end()) )
aIter++; ++aIter;
if( aIter != maChildren.end() ) if( aIter != maChildren.end() )
{ {