diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-29 13:37:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-01 08:30:27 +0200 |
commit | 595f46344e18fd6275ff7b862269e4c131449591 (patch) | |
tree | 0de2d2e300399b9aa9c0fea2dd6ca2155f8a231a /svx/source/xoutdev/_xpoly.cxx | |
parent | 44e700f70d750cf1c6aac89d0dd07a4f57879b1b (diff) |
loplugin:unuseddefaultparam in svx (part1)
Change-Id: I0fc8d00447491e8474508952c21d07aa22b6f055
Diffstat (limited to 'svx/source/xoutdev/_xpoly.cxx')
-rw-r--r-- | svx/source/xoutdev/_xpoly.cxx | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx index 881b6af78fad..ae5819ba0f2c 100644 --- a/svx/source/xoutdev/_xpoly.cxx +++ b/svx/source/xoutdev/_xpoly.cxx @@ -926,22 +926,15 @@ void XPolyPolygon::CheckReference() } } -void XPolyPolygon::Insert( const XPolygon& rXPoly, sal_uInt16 nPos ) +void XPolyPolygon::Insert( const XPolygon& rXPoly ) { CheckReference(); XPolygon* pXPoly = new XPolygon( rXPoly ); - if ( nPos < pImpXPolyPolygon->aXPolyList.size() ) - { - XPolygonList::iterator it = pImpXPolyPolygon->aXPolyList.begin(); - ::std::advance( it, nPos ); - pImpXPolyPolygon->aXPolyList.insert( it, pXPoly ); - } - else - pImpXPolyPolygon->aXPolyList.push_back( pXPoly ); + pImpXPolyPolygon->aXPolyList.push_back( pXPoly ); } /// insert all XPolygons of a XPolyPolygon -void XPolyPolygon::Insert( const XPolyPolygon& rXPolyPoly, sal_uInt16 nPos ) +void XPolyPolygon::Insert( const XPolyPolygon& rXPolyPoly ) { CheckReference(); @@ -949,15 +942,7 @@ void XPolyPolygon::Insert( const XPolyPolygon& rXPolyPoly, sal_uInt16 nPos ) { XPolygon* pXPoly = new XPolygon( rXPolyPoly[i] ); - if ( nPos < pImpXPolyPolygon->aXPolyList.size() ) - { - XPolygonList::iterator it = pImpXPolyPolygon->aXPolyList.begin(); - ::std::advance( it, nPos ); - pImpXPolyPolygon->aXPolyList.insert( it, pXPoly ); - nPos++; - } - else - pImpXPolyPolygon->aXPolyList.push_back( pXPoly ); + pImpXPolyPolygon->aXPolyList.push_back( pXPoly ); } } |