summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-12-02 21:04:23 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-12-03 12:29:35 +0100
commitf51fddc2e7cfa2a2118610a3fc4b02886544d0a9 (patch)
tree3a43d96937cb58e31db4526fbd05fda2135df221 /basegfx
parent895ac4705f370a82d84073081953c40a15881081 (diff)
Simplify a bit B2DPolyRange::appendElement (basegfx)
push_back is more optimized than an insert Change-Id: I8932c4ee61569b5eee3d5dbc5fbfd8eff624d061 Reviewed-on: https://gerrit.libreoffice.org/84276 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/range/b2dpolyrange.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/basegfx/source/range/b2dpolyrange.cxx b/basegfx/source/range/b2dpolyrange.cxx
index f5ead1641d15..21905e408167 100644
--- a/basegfx/source/range/b2dpolyrange.cxx
+++ b/basegfx/source/range/b2dpolyrange.cxx
@@ -52,10 +52,10 @@ namespace basegfx
return std::make_tuple(maRanges[nIndex], maOrient[nIndex]);
}
- void appendElement(const B2DRange& rRange, B2VectorOrientation eOrient, sal_uInt32 nCount)
+ void appendElement(const B2DRange& rRange, B2VectorOrientation eOrient)
{
- maRanges.insert(maRanges.end(), nCount, rRange);
- maOrient.insert(maOrient.end(), nCount, eOrient);
+ maRanges.push_back(rRange);
+ maOrient.push_back(eOrient);
maBounds.expand(rRange);
}
@@ -130,9 +130,9 @@ namespace basegfx
return mpImpl->getElement(nIndex);
}
- void B2DPolyRange::appendElement(const B2DRange& rRange, B2VectorOrientation eOrient, sal_uInt32 nCount)
+ void B2DPolyRange::appendElement(const B2DRange& rRange, B2VectorOrientation eOrient)
{
- mpImpl->appendElement(rRange, eOrient, nCount );
+ mpImpl->appendElement(rRange, eOrient);
}
void B2DPolyRange::clear()