summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-04 13:44:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-05 09:28:12 +0200
commitc2139cafe6240991f88b85c1df12613d0ae0e821 (patch)
treec37c94d0f1ece0d21d87dc780abd4c1d88004f35 /animations
parent51dca926f5968e9227391f7c47d25b9442178eaa (diff)
loplugin:simplifyconstruct in accessibility..bridges
Change-Id: I08f6a64b50f03d1b08027a2ac9e51442255d64bc Reviewed-on: https://gerrit.libreoffice.org/59976 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/animcore.cxx6
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 );