Kaydet (Commit) c34a5ec1 authored tarafından Julien Nabet's avatar Julien Nabet

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

Change-Id: Ibf5004c1e66edac10ec6392577fe26ea2aaed330
üst bca67a76
...@@ -423,7 +423,7 @@ void SAL_CALL MutableTreeNode::insertChildByIndex( sal_Int32 nChildIndex, const ...@@ -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 ...@@ -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() )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment