From 27ae083f7e5fce97c73498698d855cdcaac7737d Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 28 Oct 2020 17:27:30 +0200 Subject: std::set->o3tl::sorted_vector in ImpEditEngine Change-Id: Ia78b986c28e2d8e3655d5c8f56d3cb5cd7a5ee1d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104944 Tested-by: Jenkins Reviewed-by: Noel Grandin --- editeng/source/editeng/impedit3.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'editeng') diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 4ffaeec6afaa..2925183e9cf7 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -67,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -2390,7 +2391,7 @@ void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_Int32& rS ContentNode* pNode = pParaPortion->GetNode(); DBG_ASSERT( pNode->Len(), "CreateTextPortions should not be used for empty paragraphs!" ); - std::set< sal_Int32 > aPositions; + o3tl::sorted_vector< sal_Int32 > aPositions; aPositions.insert( 0 ); sal_uInt16 nAttr = 0; @@ -2463,10 +2464,10 @@ void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_Int32& rS // A portion may also have been formed by a line break: aPositions.insert( nPortionStart ); - std::set< sal_Int32 >::iterator nInvPos = aPositions.find( nPortionStart ); + auto nInvPos = aPositions.find( nPortionStart ); DBG_ASSERT( (nInvPos != aPositions.end()), "InvPos ?!" ); - std::set< sal_Int32 >::iterator i = nInvPos; + auto i = nInvPos; ++i; while ( i != aPositions.end() ) { -- cgit