diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2018-01-24 00:56:50 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@libreoffice.org> | 2018-01-25 20:48:55 +0100 |
commit | 360f2d1b46174fcb33323dcac978bfe8796bad19 (patch) | |
tree | 83a2108e4859134e66ddaedcef7976ccacdc753d /sw/source/core/unocore/unoftn.cxx | |
parent | 26d34f319ba48216785f7fdbf9e6bfdaf2dc6ad2 (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/unoftn.cxx')
-rw-r--r-- | sw/source/core/unocore/unoftn.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unoftn.cxx b/sw/source/core/unocore/unoftn.cxx index 7b251e910d34..3b5424f15d43 100644 --- a/sw/source/core/unocore/unoftn.cxx +++ b/sw/source/core/unocore/unoftn.cxx @@ -94,10 +94,7 @@ protected: void SwXFootnote::Impl::Invalidate() { - if (GetRegisteredIn()) - { - GetRegisteredIn()->Remove(this); - } + EndListeningAll(); m_pFormatFootnote = nullptr; m_rThis.SetDoc(nullptr); uno::Reference<uno::XInterface> const xThis(m_wThis); |