diff options
Diffstat (limited to 'animations')
-rw-r--r-- | animations/source/animcore/animcore.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 826aded0fb81..5e0bff6362a8 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -1822,8 +1822,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::replaceChild( const Referenc if( replace == maChildren.end() ) throw NoSuchElementException(); - Reference< XInterface > xNull( nullptr ); - oldChild->setParent( xNull ); + oldChild->setParent( Reference< XInterface >() ); (*replace) = newChild; @@ -1846,8 +1845,7 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::removeChild( const Reference if( old == maChildren.end() ) throw NoSuchElementException(); - Reference< XInterface > xNull( nullptr ); - oldChild->setParent( xNull ); + oldChild->setParent( Reference< XInterface >() ); maChildren.erase( old ); |