[Libreoffice-commits] core.git: sw/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Sun Nov 1 15:35:22 UTC 2020
sw/source/core/txtnode/thints.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 6e81dad4c2b23017cb0c996a4ab9a81e24fab16f
Author: Noel Grandin <noelgrandin at gmail.com>
AuthorDate: Sun Nov 1 14:12:27 2020 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Sun Nov 1 16:34:43 2020 +0100
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 at collabora.co.uk>
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;
More information about the Libreoffice-commits
mailing list