summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-09-12 20:10:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-13 08:13:59 +0200
commit4059583469c168c553d0529684caba6b281827d1 (patch)
treefdc1595c17d23156e97240e737f4a0e71ea56b5f /svx/source/svdraw
parenta598c5ac64fda302d13ff7638fd743a991b2e988 (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 'svx/source/svdraw')
-rw-r--r--svx/source/svdraw/polypolygoneditor.cxx12
-rw-r--r--svx/source/svdraw/svdglev.cxx2
2 files changed, 7 insertions, 7 deletions
diff --git a/svx/source/svdraw/polypolygoneditor.cxx b/svx/source/svdraw/polypolygoneditor.cxx
index 1f82f0436544..b3f6d3bc5175 100644
--- a/svx/source/svdraw/polypolygoneditor.cxx
+++ b/svx/source/svdraw/polypolygoneditor.cxx
@@ -30,11 +30,11 @@ PolyPolygonEditor::PolyPolygonEditor( const basegfx::B2DPolyPolygon& rPolyPolygo
{
}
-bool PolyPolygonEditor::DeletePoints( const std::set< sal_uInt16 >& rAbsPoints )
+bool PolyPolygonEditor::DeletePoints( const o3tl::sorted_vector< sal_uInt16 >& rAbsPoints )
{
bool bPolyPolyChanged = false;
- std::set< sal_uInt16 >::const_reverse_iterator aIter( rAbsPoints.rbegin() );
+ auto aIter( rAbsPoints.rbegin() );
for( ; aIter != rAbsPoints.rend(); ++aIter )
{
sal_uInt32 nPoly, nPnt;
@@ -62,11 +62,11 @@ bool PolyPolygonEditor::DeletePoints( const std::set< sal_uInt16 >& rAbsPoints )
return bPolyPolyChanged;
}
-bool PolyPolygonEditor::SetSegmentsKind(SdrPathSegmentKind eKind, const std::set< sal_uInt16 >& rAbsPoints )
+bool PolyPolygonEditor::SetSegmentsKind(SdrPathSegmentKind eKind, const o3tl::sorted_vector< sal_uInt16 >& rAbsPoints )
{
bool bPolyPolyChanged = false;
- std::set< sal_uInt16 >::const_reverse_iterator aIter( rAbsPoints.rbegin() );
+ auto aIter( rAbsPoints.rbegin() );
for( ; aIter != rAbsPoints.rend(); ++aIter )
{
sal_uInt32 nPolyNum, nPntNum;
@@ -122,11 +122,11 @@ bool PolyPolygonEditor::SetSegmentsKind(SdrPathSegmentKind eKind, const std::set
return bPolyPolyChanged;
}
-bool PolyPolygonEditor::SetPointsSmooth( basegfx::B2VectorContinuity eFlags, const std::set< sal_uInt16 >& rAbsPoints)
+bool PolyPolygonEditor::SetPointsSmooth( basegfx::B2VectorContinuity eFlags, const o3tl::sorted_vector< sal_uInt16 >& rAbsPoints)
{
bool bPolyPolygonChanged(false);
- std::set< sal_uInt16 >::const_reverse_iterator aIter( rAbsPoints.rbegin() );
+ auto aIter( rAbsPoints.rbegin() );
for( ; aIter != rAbsPoints.rend(); ++aIter )
{
sal_uInt32 nPolyNum, nPntNum;
diff --git a/svx/source/svdraw/svdglev.cxx b/svx/source/svdraw/svdglev.cxx
index 5f81d38575ab..9d1f19c558cf 100644
--- a/svx/source/svdraw/svdglev.cxx
+++ b/svx/source/svdraw/svdglev.cxx
@@ -297,7 +297,7 @@ void SdrGlueEditView::ImpCopyMarkedGluePoints()
}
for(const auto& rId : aIdsToErase)
rPts.erase(rId);
- rPts.insert(aIdsToInsert.begin(), aIdsToInsert.end());
+ rPts.insert(aIdsToInsert);
}
}
if( bUndo )