From 990d710bf772df3b5ec9b17bc43ef5b62042b39c Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Sun, 20 Oct 2024 10:51:46 +0200 Subject: tdf#163486: PVS: fix copy&paste error Since commit f02e1a0abc42870dd863b53af0d9eb9c3e7f8bc8 Author: Kurt Zenker Date: Thu Mar 6 16:58:17 2008 +0000 INTEGRATION: CWS odbmacros2 (1.36.2); FILE MERGED V524 It is odd that the body of 'removeStorageChangeListener' function is fully equivalent to the body of 'addStorageChangeListener' function. Change-Id: Ie5456f4ef7397d5f9144ac3167724f6c2ca32c56 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175251 Reviewed-by: Mike Kaganski Reviewed-by: Xisco Fauli Tested-by: Jenkins --- dbaccess/source/core/dataaccess/databasedocument.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 3cef96ab599a..dcacb7355bda 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -1973,7 +1973,7 @@ void SAL_CALL ODatabaseDocument::addStorageChangeListener( const Reference< XSto void SAL_CALL ODatabaseDocument::removeStorageChangeListener( const Reference< XStorageChangeListener >& Listener ) { DocumentGuard aGuard(*this, DocumentGuard::DefaultMethod); - m_aStorageListeners.addInterface( Listener ); + m_aStorageListeners.removeInterface( Listener ); } Reference< XStorageBasedLibraryContainer > SAL_CALL ODatabaseDocument::getBasicLibraries() -- cgit