Kaydet (Commit) 80fc1fe3 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen Kaydeden (comit) Björn Michaelsen

Remove SwEndNoteInfo::ReleaseCollection

- obsoleted by SwClient::EndListeningAll()

Change-Id: Id086a42e778b7630c44af4a6ddf2a23d77538c2b
Reviewed-on: https://gerrit.libreoffice.org/48549Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>
üst 360f2d1b
......@@ -71,7 +71,6 @@ public:
void SetPrefix(const OUString& rSet) { sPrefix = rSet; }
void SetSuffix(const OUString& rSet) { sSuffix = rSet; }
void ReleaseCollection() { if ( GetRegisteredInNonConst() ) GetRegisteredInNonConst()->Remove( this ); }
};
enum SwFootnotePos
......
......@@ -498,8 +498,8 @@ SwDoc::~SwDoc()
// Delete for Collections
// So that we get rid of the dependencies
mpFootnoteInfo->ReleaseCollection();
mpEndNoteInfo->ReleaseCollection();
mpFootnoteInfo->EndListeningAll();
mpEndNoteInfo->EndListeningAll();
assert(mpDfltTextFormatColl == (*mpTextFormatCollTable)[0]
&& "Default-Text-Collection must always be at the start");
......@@ -711,8 +711,8 @@ void SwDoc::ClearDoc()
// Delete for Collections
// So that we get rid of the dependencies
mpFootnoteInfo->ReleaseCollection();
mpEndNoteInfo->ReleaseCollection();
mpFootnoteInfo->EndListeningAll();
mpEndNoteInfo->EndListeningAll();
// Optimization: Based on the fact that Standard is always 2nd in the
// array, we should delete it as the last. With this we avoid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment