diff options
Diffstat (limited to 'animations')
-rw-r--r-- | animations/source/animcore/animcore.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx index 05b3ae010561..a22c413e64f8 100644 --- a/animations/source/animcore/animcore.cxx +++ b/animations/source/animcore/animcore.cxx @@ -2015,15 +2015,13 @@ Reference< XAnimationNode > SAL_CALL AnimationNode::appendChild( const Reference Guard< Mutex > aGuard( m_aMutex ); if( !newChild.is() ) - throw IllegalArgumentException("no child", static_cast<cppu::OWeakObject*>(this), 1); + throw IllegalArgumentException("no child", xThis, 1); if( std::find(maChildren.begin(), maChildren.end(), newChild) != maChildren.end() ) - throw ElementExistException(); + throw ElementExistException({}, xThis); - Reference< XInterface > xChild( newChild ); - - if( xThis == xChild ) - throw IllegalArgumentException("cannot append self", static_cast<cppu::OWeakObject*>(this), -1); + if( xThis == newChild ) + throw IllegalArgumentException("cannot append self", xThis, -1); maChildren.push_back( newChild ); } |