summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-02 08:20:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-02 11:23:11 +0200
commitba748771cadb294d6af7b7c784c33ccf8632dff1 (patch)
tree5b99dcfa790d8db7997638e78d878dc1011742de /sw
parentef0c1a32be14320991ef24321b5e667852b4ec98 (diff)
tdf#122926 FILEOPEN ODT Slower compared to the past (part2)
Further improvement: on my machine, this takes the time from 8.9s to 5.7s Change-Id: Ic7f7c46b10fbb671ff5bbf9d0a6a0195696741bc Reviewed-on: https://gerrit.libreoffice.org/70112 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/ndtxt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/ndtxt.cxx b/sw/source/core/txtnode/ndtxt.cxx
index 377618f2cab8..6bf96c6d6a2c 100644
--- a/sw/source/core/txtnode/ndtxt.cxx
+++ b/sw/source/core/txtnode/ndtxt.cxx
@@ -1394,7 +1394,7 @@ void SwTextNode::Update(
bool bAtLeastOneBookmarkMoved = false;
bool bAtLeastOneExpandedBookmarkAtInsertionPosition = false;
// A text node already knows its marks via its SwIndexes.
- std::unordered_set<const sw::mark::IMark*> aSeenMarks;
+ o3tl::sorted_vector<const sw::mark::IMark*> aSeenMarks;
const SwIndex* next;
for (const SwIndex* pIndex = GetFirstIndex(); pIndex; pIndex = next )
{