summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unostyle.cxx
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2018-01-24 00:56:50 +0100
committerBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>2018-01-25 20:48:55 +0100
commit360f2d1b46174fcb33323dcac978bfe8796bad19 (patch)
tree83a2108e4859134e66ddaedcef7976ccacdc753d /sw/source/core/unocore/unostyle.cxx
parent26d34f319ba48216785f7fdbf9e6bfdaf2dc6ad2 (diff)
introduce SwClient::EndListeningAll()
- this is to reduce the use of GetRegisterdIn(), which should be an implementation detail - remove SwTOXMark::DeRegister() which did the same for a part of the class tree - remove SwUndoSetFlyFormat::DeRegisterFromFormat(), same - remove doubletracking FrameDeleteWatch::m_bDeleted, just check GetRegisteredIn() Change-Id: Id9364076759446ee5ff1898683c3ca700c1014c9 Reviewed-on: https://gerrit.libreoffice.org/48548 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/core/unocore/unostyle.cxx')
-rw-r--r--sw/source/core/unocore/unostyle.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx
index 604be8e774c6..795883a47ac2 100644
--- a/sw/source/core/unocore/unostyle.cxx
+++ b/sw/source/core/unocore/unostyle.cxx
@@ -1310,8 +1310,7 @@ SwXStyle::~SwXStyle()
if(m_pBasePool)
EndListening(*m_pBasePool);
m_pPropertiesImpl.reset();
- if(GetRegisteredIn())
- GetRegisteredIn()->Remove( this );
+ SwClient::EndListeningAll();
}
void SwXStyle::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew)