summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-10-20 10:51:46 +0200
committerXisco Fauli <xiscofauli@libreoffice.org>2024-10-20 16:14:47 +0200
commit990d710bf772df3b5ec9b17bc43ef5b62042b39c (patch)
treee2d180fe2aa9d568d312dead8eceb641d3732daf /dbaccess
parenta901b1e307bf2a62e0af7ad5ebbfc77724fab657 (diff)
tdf#163486: PVS: fix copy&paste error
Since commit f02e1a0abc42870dd863b53af0d9eb9c3e7f8bc8 Author: Kurt Zenker <kz@openoffice.org> 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 <mike.kaganski@collabora.com> Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org> Tested-by: Jenkins
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/databasedocument.cxx2
1 files changed, 1 insertions, 1 deletions
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()