[Libreoffice-commits] core.git: basic/source

vipbuoy (via logerrit) logerrit at kemper.freedesktop.org
Wed Feb 17 12:25:10 UTC 2021


 basic/source/uno/namecont.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 1775cd844bc5b45e1f40148051ad9cc2635413e0
Author:     vipbuoy <aggarwalvipul47 at gmail.com>
AuthorDate: Sun Feb 14 14:25:56 2021 +0530
Commit:     Michael Stahl <michael.stahl at allotropia.de>
CommitDate: Wed Feb 17 13:24:30 2021 +0100

    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 at allotropia.de>

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) );
 }


More information about the Libreoffice-commits mailing list