Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ibf5004c1e66edac10ec6392577fe26ea2aaed330
This commit is contained in:
parent
bca67a76b0
commit
c34a5ec1a6
@ -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() )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user