diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2020-09-12 20:10:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-13 08:13:59 +0200 |
commit | 4059583469c168c553d0529684caba6b281827d1 (patch) | |
tree | fdc1595c17d23156e97240e737f4a0e71ea56b5f /include/svx | |
parent | a598c5ac64fda302d13ff7638fd743a991b2e988 (diff) |
std::set->o3tl::sorted_vector in svx
Change-Id: I86154a8ddf885ea23ff29e4df1b67e7501b9165b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102536
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/polypolygoneditor.hxx | 7 | ||||
-rw-r--r-- | include/svx/svdmark.hxx | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/include/svx/polypolygoneditor.hxx b/include/svx/polypolygoneditor.hxx index e8b6138dffa4..347bbc4a92a5 100644 --- a/include/svx/polypolygoneditor.hxx +++ b/include/svx/polypolygoneditor.hxx @@ -26,6 +26,7 @@ #include <basegfx/polygon/b2dpolypolygon.hxx> #include <set> +#include <o3tl/sorted_vector.hxx> namespace sdr { @@ -41,15 +42,15 @@ public: /** returns true if the B2DPolyPolygon was changed. Warning: B2DPolyPolygon can be empty after this operation! */ - bool DeletePoints( const std::set< sal_uInt16 >& rAbsPoints ); + bool DeletePoints( const o3tl::sorted_vector< sal_uInt16 >& rAbsPoints ); /** returns true if the B2DPolyPolygon was changed. */ - bool SetSegmentsKind(SdrPathSegmentKind eKind, const std::set< sal_uInt16 >& rAbsPoints); + bool SetSegmentsKind(SdrPathSegmentKind eKind, const o3tl::sorted_vector< sal_uInt16 >& rAbsPoints); /** returns true if the B2DPolyPolygon was changed. */ - bool SetPointsSmooth( basegfx::B2VectorContinuity eFlags, const std::set< sal_uInt16 >& rAbsPoints); + bool SetPointsSmooth( basegfx::B2VectorContinuity eFlags, const o3tl::sorted_vector< sal_uInt16 >& rAbsPoints); /** Outputs the relative position ( polygon number and point number in that polygon ) from the absolute point number. False is returned if the given absolute point is greater not inside this B2DPolyPolygon diff --git a/include/svx/svdmark.hxx b/include/svx/svdmark.hxx index f5f9c7b539d5..1b121a58f86e 100644 --- a/include/svx/svdmark.hxx +++ b/include/svx/svdmark.hxx @@ -21,12 +21,12 @@ #define INCLUDED_SVX_SVDMARK_HXX #include <config_options.h> +#include <o3tl/sorted_vector.hxx> #include <rtl/ustring.hxx> #include <svx/svxdllapi.h> #include <svx/sdrobjectuser.hxx> #include <memory> -#include <set> #include <vector> namespace tools { class Rectangle; } @@ -35,7 +35,7 @@ class SdrObjList; class SdrObject; class SdrPageView; -typedef std::set<sal_uInt16> SdrUShortCont; +typedef o3tl::sorted_vector<sal_uInt16> SdrUShortCont; /** |