summaryrefslogtreecommitdiff
path: root/sw/source/core/edit
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-07-01 22:51:58 +0200
committerBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-07-03 00:29:48 +0200
commit7dc3a20cab712ee987ea25a8f5728529521485b7 (patch)
tree744a203152a527922a70f28076496cba42a5476a /sw/source/core/edit
parentf106bb4471b6d3627311980ed727459b2da8e448 (diff)
SwTOXMark::InsertTOXMarks: SwIterator no more ...
- remove manual SwIterator usage - moved SwTOXMark from ::Modify to ::SwClientNotify - replaced static InsertTOXMarks() with SwTOXType::CollectTextMarks() where it belongs Change-Id: Ib8289c07882a61278dedb1bc1fadc1a9237fea4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97663 Tested-by: Jenkins Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org>
Diffstat (limited to 'sw/source/core/edit')
-rw-r--r--sw/source/core/edit/edtox.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/edit/edtox.cxx b/sw/source/core/edit/edtox.cxx
index 343aa697d86f..20cc2df50eea 100644
--- a/sw/source/core/edit/edtox.cxx
+++ b/sw/source/core/edit/edtox.cxx
@@ -279,7 +279,7 @@ void SwEditShell::ApplyAutoMark()
const SwTOXType* pTOXType = GetTOXType(TOX_INDEX, 0);
SwTOXMarks aMarks;
- SwTOXMark::InsertTOXMarks( aMarks, *pTOXType );
+ pTOXType->CollectTextMarks(aMarks);
for( SwTOXMark* pMark : aMarks )
{
if(pMark->IsAutoGenerated() && pMark->GetTextTOXMark())