toolkit/source/controls/tree/treecontrolpeer.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c73c69db6b4cfb77dae5859525692f97c6ffd707
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Sun Oct 20 11:30:11 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Sun Oct 20 16:15:22 2024 +0200

    tdf#163486: PVS: fix copy&paste error
    
    Since
    commit 32cd4a92ef227bacd70be5c325a7e0d82bc90a7e
    Author: Jens-Heiner Rechtien <h...@openoffice.org>
    Date:   Wed Jun 27 11:18:37 2007 +0000
    
        INTEGRATION: CWS awttree01 (1.1.2); FILE ADDED
    
    V524    It is odd that the body of 'removeSelectionChangeListener' function 
is fully equivalent to the body of 'addSelectionChangeListener' function.
    
    Change-Id: I807520da4515ae8dfb070b29aa772bab1ade592b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175254
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/toolkit/source/controls/tree/treecontrolpeer.cxx 
b/toolkit/source/controls/tree/treecontrolpeer.cxx
index 94390ceed15a..4ad836db314a 100644
--- a/toolkit/source/controls/tree/treecontrolpeer.cxx
+++ b/toolkit/source/controls/tree/treecontrolpeer.cxx
@@ -538,7 +538,7 @@ void SAL_CALL TreeControlPeer::addSelectionChangeListener( 
const Reference< XSel
 
 void SAL_CALL TreeControlPeer::removeSelectionChangeListener( const Reference< 
XSelectionChangeListener >& xListener )
 {
-    maSelectionListeners.addInterface( xListener );
+    maSelectionListeners.removeInterface( xListener );
 }
 
 

Reply via email to