diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-10-28 18:43:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-28 21:43:46 +0100 |
commit | e7c4d06369f0c495ad59acdea0cd846526e66823 (patch) | |
tree | edad851de7b180badc90b684ab0dde88b9fe9225 /sw/source/core/unocore | |
parent | ed4534d32fd760274c058374c8cfc443c01fea0c (diff) |
std::set->o3tl::sorted_vector in sw
Change-Id: Ib647878c129171e5d633a783a262a56f4c1fb7af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104969
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/unocore')
-rw-r--r-- | sw/source/core/unocore/unocrsrhelper.cxx | 2 | ||||
-rw-r--r-- | sw/source/core/unocore/unoobj.cxx | 16 | ||||
-rw-r--r-- | sw/source/core/unocore/unoparagraph.cxx | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/core/unocore/unocrsrhelper.cxx b/sw/source/core/unocore/unocrsrhelper.cxx index 8e51f25a51b8..0186b5f9613f 100644 --- a/sw/source/core/unocore/unocrsrhelper.cxx +++ b/sw/source/core/unocore/unocrsrhelper.cxx @@ -1016,7 +1016,7 @@ void resetCursorPropertyValue(const SfxItemPropertySimpleEntry& rEntry, SwPaM& r break; case FN_UNO_CHARFMT_SEQUENCE: { - std::set<sal_uInt16> aWhichIds; + o3tl::sorted_vector<sal_uInt16> aWhichIds; aWhichIds.insert( RES_TXTATR_CHARFMT); rDoc.ResetAttrs(rPam, true, aWhichIds); } diff --git a/sw/source/core/unocore/unoobj.cxx b/sw/source/core/unocore/unoobj.cxx index ef08aeb38e89..eb100abb6e54 100644 --- a/sw/source/core/unocore/unoobj.cxx +++ b/sw/source/core/unocore/unoobj.cxx @@ -1982,7 +1982,7 @@ beans::PropertyState SwUnoCursorHelper::GetPropertyState( static void lcl_SelectParaAndReset( SwPaM &rPaM, SwDoc & rDoc, - std::set<sal_uInt16> const &rWhichIds ) + o3tl::sorted_vector<sal_uInt16> const &rWhichIds ) { // if we are resetting paragraph attributes, we need to select the full paragraph first SwPosition aStart = *rPaM.Start(); @@ -2025,7 +2025,7 @@ void SwUnoCursorHelper::SetPropertyToDefault( if (pEntry->nWID < RES_FRMATR_END) { - std::set<sal_uInt16> aWhichIds; + o3tl::sorted_vector<sal_uInt16> aWhichIds; aWhichIds.insert( pEntry->nWID ); if (pEntry->nWID < RES_PARATR_BEGIN) { @@ -2310,7 +2310,7 @@ static sal_uInt16 g_ResetableSetRange[] = { }; static void -lcl_EnumerateIds(sal_uInt16 const* pIdRange, std::set<sal_uInt16> &rWhichIds) +lcl_EnumerateIds(sal_uInt16 const* pIdRange, o3tl::sorted_vector<sal_uInt16> &rWhichIds) { while (*pIdRange) { @@ -2318,7 +2318,7 @@ lcl_EnumerateIds(sal_uInt16 const* pIdRange, std::set<sal_uInt16> &rWhichIds) const sal_uInt16 nEnd = *pIdRange++; for (sal_uInt16 nId = nStart + 1; nId <= nEnd; ++nId) { - rWhichIds.insert( rWhichIds.end(), nId ); + rWhichIds.insert( nId ); } } } @@ -2330,8 +2330,8 @@ SwXTextCursor::setAllPropertiesToDefault() SwUnoCursor & rUnoCursor( m_pImpl->GetCursorOrThrow() ); - std::set<sal_uInt16> aParaWhichIds; - std::set<sal_uInt16> aWhichIds; + o3tl::sorted_vector<sal_uInt16> aParaWhichIds; + o3tl::sorted_vector<sal_uInt16> aWhichIds; lcl_EnumerateIds(g_ParaResetableSetRange, aParaWhichIds); lcl_EnumerateIds(g_ResetableSetRange, aWhichIds); if (!aParaWhichIds.empty()) @@ -2357,8 +2357,8 @@ SwXTextCursor::setPropertiesToDefault( return; SwDoc& rDoc = rUnoCursor.GetDoc(); - std::set<sal_uInt16> aWhichIds; - std::set<sal_uInt16> aParaWhichIds; + o3tl::sorted_vector<sal_uInt16> aWhichIds; + o3tl::sorted_vector<sal_uInt16> aParaWhichIds; for (const OUString& rName : rPropertyNames) { SfxItemPropertySimpleEntry const*const pEntry = diff --git a/sw/source/core/unocore/unoparagraph.cxx b/sw/source/core/unocore/unoparagraph.cxx index 2494aba60516..ab2dcae3e49d 100644 --- a/sw/source/core/unocore/unoparagraph.cxx +++ b/sw/source/core/unocore/unoparagraph.cxx @@ -1110,7 +1110,7 @@ SwXParagraph::setPropertyToDefault(const OUString& rPropertyName) if(bBelowFrameAtrEnd || bDrawingLayerRange) { - std::set<sal_uInt16> aWhichIds; + o3tl::sorted_vector<sal_uInt16> aWhichIds; // For FillBitmapMode two IDs have to be reset (!) if(OWN_ATTR_FILLBMP_MODE == pEntry->nWID) |