summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 10:31:38 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-11 13:55:30 +0200
commit65e4a776e8315fd61fd67ad00d28985b11f0b79e (patch)
tree1ab7a2947d47807086e0477a8d3ad35c2e75dd48 /oox
parenta7b7614c7cab42cd0839752635db81e25e1e50a1 (diff)
simplify some OUString::copy calls
Change-Id: Ifa228ca02ea79a1309e1875414028aade7e5f12d Reviewed-on: https://gerrit.libreoffice.org/39801 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/vml/vmlshape.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 5153e517a214..f091326e0c1e 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -987,7 +987,7 @@ Reference< XShape > BezierShape::implConvertAndInsert( const Reference< XShapes
{
// If we have an 'x' in the last part of the path it means it is closed...
sal_Int32 nPos = maShapeModel.maVmlPath.lastIndexOf(',');
- if ( nPos != -1 && maShapeModel.maVmlPath.copy(nPos).indexOf('x') != -1 )
+ if ( nPos != -1 && maShapeModel.maVmlPath.indexOf(nPos, 'x') != -1 )
{
const_cast<BezierShape*>( this )->setService( "com.sun.star.drawing.ClosedBezierShape" );
}