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/inc | |
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/inc')
-rw-r--r-- | sw/inc/doc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/editsh.hxx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index fdcc5e4091f0..0eef11b1530f 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -697,7 +697,7 @@ public: control, if the side effect "send data changed events" is triggered or not. */ void ResetAttrs( const SwPaM &rRg, bool bTextAttr = true, - const std::set<sal_uInt16> &rAttrs = std::set<sal_uInt16>(), + const o3tl::sorted_vector<sal_uInt16> &rAttrs = o3tl::sorted_vector<sal_uInt16>(), const bool bSendDataChangedEvents = true, SwRootFrame const* pLayout = nullptr); void RstTextAttrs(const SwPaM &rRg, bool bInclRefToxMark = false, diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index f47edfafa5a1..82e32c208347 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -32,6 +32,7 @@ #include <memory> #include <vector> #include <set> +#include <o3tl/sorted_vector.hxx> namespace tools { class PolyPolygon; } class SwDoc; @@ -273,7 +274,7 @@ public: return static_cast<const T&>(GetDefault(sal_uInt16(nWhich))); } - void ResetAttr( const std::set<sal_uInt16> &attrs = std::set<sal_uInt16>(), SwPaM* pCursor = nullptr ); + void ResetAttr( const o3tl::sorted_vector<sal_uInt16> &attrs = o3tl::sorted_vector<sal_uInt16>(), SwPaM* pCursor = nullptr ); void GCAttr(); /// @return the scripttype of the selection. |