summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipbuoy <aggarwalvipul47@gmail.com>2021-02-14 14:25:56 +0530
committerMichael Stahl <michael.stahl@allotropia.de>2021-02-17 13:24:30 +0100
commit1775cd844bc5b45e1f40148051ad9cc2635413e0 (patch)
treebc0fa92a0743db82edea3fd3dcf08bda43e531fd
parentf89f806c88a8374e1dfd1d09747801377b8c0f36 (diff)
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>
-rw-r--r--basic/source/uno/namecont.cxx8
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) );
}