summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode/thints.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-11-01 14:12:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-11-01 16:34:43 +0100
commit6e81dad4c2b23017cb0c996a4ab9a81e24fab16f (patch)
treee6fc51253243e139a87c7b6ca5c08c25b97aff57 /sw/source/core/txtnode/thints.cxx
parent6e11de09b3cce8cec0fc43b8fdb631ace0853a5a (diff)
std::set->o3tl::sorted_vector in SwpHints
Change-Id: I6affafb9733495c07c322abc9ac7456862df1332 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/txtnode/thints.cxx')
-rw-r--r--sw/source/core/txtnode/thints.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index e9deb654a54e..297e847e05d9 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -705,7 +705,7 @@ void SwpHints::BuildPortions( SwTextNode& rNode, SwTextAttr& rNewHint,
// 4. Split rNewHint into 1 ... n new hints:
- std::set<sal_Int32> aBounds;
+ o3tl::sorted_vector<sal_Int32> aBounds;
aBounds.insert( nThisStart );
aBounds.insert( nThisEnd );
@@ -727,8 +727,8 @@ void SwpHints::BuildPortions( SwTextNode& rNode, SwTextAttr& rNewHint,
}
}
- std::set<sal_Int32>::iterator aStartIter = aBounds.lower_bound( nThisStart );
- std::set<sal_Int32>::iterator aEndIter = aBounds.upper_bound( nThisEnd );
+ auto aStartIter = aBounds.lower_bound( nThisStart );
+ auto aEndIter = aBounds.upper_bound( nThisEnd );
sal_Int32 nPorStart = *aStartIter;
++aStartIter;
bool bDestroyHint = true;