From c2139cafe6240991f88b85c1df12613d0ae0e821 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 4 Sep 2018 13:44:45 +0200 Subject: loplugin:simplifyconstruct in accessibility..bridges Change-Id: I08f6a64b50f03d1b08027a2ac9e51442255d64bc Reviewed-on: https://gerrit.libreoffice.org/59976 Tested-by: Jenkins Reviewed-by: Noel Grandin --- animations/source/animcore/animcore.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'animations') 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 ); -- cgit