toolkit/source/awt/vclxwindows.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 001c3919aabc6713835f67e9cd86ece88c68736e
Author:     Xisco Fauli <xiscofa...@libreoffice.org>
AuthorDate: Sun Oct 20 11:31:53 2024 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Sun Oct 20 16:15:52 2024 +0200

    tdf#163486: PVS: fix copy&paste error
    
    Since
    commit 95824f8636a604cb498f6e7d62ff0ed3d6b2d5ba
    Author: Noel Power <noel.po...@novell.com>
    Date:   Tue Nov 2 16:55:17 2010 +0000
    
        initial import of latest cws container_controls
    
    V524    It is odd that the body of 'removeTabListener' function is fully 
equivalent to the body of 'addTabListener' function.
    
    Change-Id: Iafa1f374564ab425e8c22f4e706d361f03d3183e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175255
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>
    Tested-by: Jenkins

diff --git a/toolkit/source/awt/vclxwindows.cxx 
b/toolkit/source/awt/vclxwindows.cxx
index ece671c42592..f1162b68cf56 100644
--- a/toolkit/source/awt/vclxwindows.cxx
+++ b/toolkit/source/awt/vclxwindows.cxx
@@ -2562,7 +2562,7 @@ void SAL_CALL VCLXMultiPage::addTabListener( const 
uno::Reference< awt::XTabList
 void SAL_CALL VCLXMultiPage::removeTabListener( const uno::Reference< 
awt::XTabListener >& xListener )
 {
     SolarMutexGuard aGuard;
-    maTabListeners.addInterface( xListener );
+    maTabListeners.removeInterface( xListener );
 }
 
 void SAL_CALL VCLXMultiPage::setTabProps( sal_Int32 ID, const uno::Sequence< 
beans::NamedValue >& Properties )

Reply via email to