sw/source/core/unocore/unoportenum.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-)
New commits: commit 82da10d3d97c989b14b3da5603d768e1d37559d9 Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Nov 1 14:11:39 2020 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Nov 1 15:17:30 2020 +0100 std::set->o3tl::sorted_vector in ExportFrames Change-Id: Ic82a1aad7df2b0088a78c8d82ceb487d8b9e0571 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105133 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx index 6be9774ee015..f6919bbc7467 100644 --- a/sw/source/core/unocore/unoportenum.cxx +++ b/sw/source/core/unocore/unoportenum.cxx @@ -573,7 +573,7 @@ static void lcl_ExportBookmark( const SwUnoCursor * const pUnoCursor, SwXBookmarkPortion_ImplList& rBkmArr, const sal_Int32 nIndex, - const std::set<sal_Int32>& rFramePositions, + const o3tl::sorted_vector<sal_Int32>& rFramePositions, bool bOnlyFrameStarts) { for ( SwXBookmarkPortion_ImplList::iterator aIter = rBkmArr.begin(), aEnd = rBkmArr.end(); aIter != aEnd; ) @@ -634,9 +634,7 @@ static void lcl_ExportSoftPageBreak( SwSoftPageBreakList& rBreakArr, const sal_Int32 nIndex) { - for ( SwSoftPageBreakList::iterator aIter = rBreakArr.begin(), - aEnd = rBreakArr.end(); - aIter != aEnd; ) + for ( auto aIter = rBreakArr.begin(), aEnd = rBreakArr.end(); aIter != aEnd; ) { if ( nIndex > *aIter ) { @@ -1121,7 +1119,7 @@ static void lcl_ExportBkmAndRedline( SwXRedlinePortion_ImplList& rRedlineArr, SwSoftPageBreakList& rBreakArr, const sal_Int32 nIndex, - const std::set<sal_Int32>& rFramePositions, + const o3tl::sorted_vector<sal_Int32>& rFramePositions, bool bOnlyFrameBookmarkStarts) { if (!rBkmArr.empty()) @@ -1157,7 +1155,7 @@ static void lcl_ExportAnnotationStarts( const SwUnoCursor * const pUnoCursor, SwAnnotationStartPortion_ImplList& rAnnotationStartArr, const sal_Int32 nIndex, - const std::set<sal_Int32>& rFramePositions, + const o3tl::sorted_vector<sal_Int32>& rFramePositions, bool bOnlyFrame) { for ( SwAnnotationStartPortion_ImplList::iterator aIter = rAnnotationStartArr.begin(), aEnd = rAnnotationStartArr.end(); @@ -1191,7 +1189,7 @@ static void lcl_ExportAnnotationStarts( /// Fills character positions from rFrames into rFramePositions. static void lcl_ExtractFramePositions(FrameClientSortList_t& rFrames, sal_Int32 nCurrentIndex, - std::set<sal_Int32>& rFramePositions) + o3tl::sorted_vector<sal_Int32>& rFramePositions) { for (const auto& rFrame : rFrames) { @@ -1346,7 +1344,7 @@ static void lcl_CreatePortions( SwUnoCursorHelper::SelectPam(*pUnoCursor, true); // set mark // First remember the frame positions. - std::set<sal_Int32> aFramePositions; + o3tl::sorted_vector<sal_Int32> aFramePositions; lcl_ExtractFramePositions(i_rFrames, nCurrentIndex, aFramePositions); // Then export start of collapsed bookmarks which "cover" at-char _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits