sw/source/core/doc/CntntIdxStore.cxx |    2 +-
 sw/source/core/inc/MarkManager.hxx   |    5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 13d3b6e5b8323d7af686b7ade2785827b7854920
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Sat Oct 19 01:12:07 2019 +0200
Commit:     Michael Stahl <michael.st...@cib.de>
CommitDate: Mon Oct 21 11:23:04 2019 +0200

    Fix FIXME sortMarks should be private (sw)
    
    Change-Id: Iaf9360ae5f722c6fc0afb3cbb8e648b64b89d38d
    Reviewed-on: https://gerrit.libreoffice.org/81118
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@cib.de>

diff --git a/sw/source/core/doc/CntntIdxStore.cxx 
b/sw/source/core/doc/CntntIdxStore.cxx
index 7355257bf711..bc970410eeb1 100644
--- a/sw/source/core/doc/CntntIdxStore.cxx
+++ b/sw/source/core/doc/CntntIdxStore.cxx
@@ -283,7 +283,7 @@ void ContentIdxStoreImpl::RestoreBkmks(SwDoc* pDoc, 
updater_t const & rUpdater)
     if (!m_aBkmkEntries.empty())
     {   // tdf#105705 sort bookmarks because SaveBkmks special handling of
         // "bMarkPosEqual" may destroy sort order
-        dynamic_cast<sw::mark::MarkManager&>(*pMarkAccess).sortMarks();
+        pMarkAccess->assureSortedMarkContainers();
     }
 }
 
diff --git a/sw/source/core/inc/MarkManager.hxx 
b/sw/source/core/inc/MarkManager.hxx
index a97f28c21b53..120149ccc039 100644
--- a/sw/source/core/inc/MarkManager.hxx
+++ b/sw/source/core/inc/MarkManager.hxx
@@ -118,10 +118,9 @@ namespace sw {
 
             // make names
             OUString getUniqueMarkName(const OUString& rName) const;
-        public: // FIXME should be private, needs refactor
-            void sortMarks();
-        private:
+
             void sortSubsetMarks();
+            void sortMarks();
 
             // container for all marks, this container owns the objects it 
points to
             container_t m_vAllMarks;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to