diff options
Diffstat (limited to 'animations')
-rw-r--r-- | animations/source/animcore/animcore.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 71d4ab97e9e2..b664b683347a 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -1221,11 +1221,7 @@ void SAL_CALL AnimationNode::setParent( const Reference< XInterface >& Parent ) if( Parent != mxParent.get() ) { mxParent = Parent; - - mpParent = nullptr; - Reference< XUnoTunnel > xTunnel( mxParent.get(), UNO_QUERY ); - if( xTunnel.is() ) - mpParent = reinterpret_cast< AnimationNode* >( sal::static_int_cast< sal_IntPtr >(xTunnel->getSomething( getUnoTunnelId() ))); + mpParent = comphelper::getFromUnoTunnel<AnimationNode>(mxParent.get()); fireChangeListener(); } |