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