From 001c3919aabc6713835f67e9cd86ece88c68736e Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 20 Oct 2024 11:31:53 +0200 Subject: tdf#163486: PVS: fix copy&paste error Since commit 95824f8636a604cb498f6e7d62ff0ed3d6b2d5ba Author: Noel Power 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 Tested-by: Jenkins --- toolkit/source/awt/vclxwindows.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolkit') 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 ) -- cgit