diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/namecont.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index a2b0391f92da..806fbcf1a22d 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -291,7 +291,7 @@ void SAL_CALL NameContainer::addContainerListener( const Reference< XContainerLi { if( !xListener.is() ) { - throw RuntimeException("addContainerListener called with null xListener"); + throw RuntimeException("addContainerListener called with null xListener",static_cast< cppu::OWeakObject * >(this)); } maContainerListeners.addInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } @@ -300,7 +300,7 @@ void SAL_CALL NameContainer::removeContainerListener( const Reference< XContaine { if( !xListener.is() ) { - throw RuntimeException("removeContainerListener called with null xListener"); + throw RuntimeException("removeContainerListener called with null xListener",static_cast< cppu::OWeakObject * >(this)); } maContainerListeners.removeInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } @@ -310,7 +310,7 @@ void SAL_CALL NameContainer::addChangesListener( const Reference< XChangesListen { if( !xListener.is() ) { - throw RuntimeException("addChangesListener called with null xListener"); + throw RuntimeException("addChangesListener called with null xListener",static_cast< cppu::OWeakObject * >(this)); } maChangesListeners.addInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } @@ -319,7 +319,7 @@ void SAL_CALL NameContainer::removeChangesListener( const Reference< XChangesLis { if( !xListener.is() ) { - throw RuntimeException("removeChangesListener called with null xListener"); + throw RuntimeException("removeChangesListener called with null xListener",static_cast< cppu::OWeakObject * >(this)); } maChangesListeners.removeInterface( Reference<XInterface>(xListener, UNO_QUERY) ); } |