tdf#42982 updated RunTimeException with 2nd argument(pointer)
Change-Id: I52dd9b9808e5fd61d07d4f8a6642124230ede23f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110971
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index a2b0391..806fbcf 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) );
}