[Libreoffice-commits] core.git: svx/source
Noel Grandin
noelgrandin at gmail.com
Mon Apr 4 09:16:34 UTC 2016
svx/source/customshapes/EnhancedCustomShape2d.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit d3055b56c7a67e80e1c6e3bdd3838dd977a26926
Author: Noel Grandin <noelgrandin at gmail.com>
Date: Sun Apr 3 12:51:16 2016 +0200
sequence->vector in svx
Change-Id: Iae188e15033983a08c76a7b88c4fa8f9777f0978
Reviewed-on: https://gerrit.libreoffice.org/23757
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin at gmail.com>
diff --git a/svx/source/customshapes/EnhancedCustomShape2d.cxx b/svx/source/customshapes/EnhancedCustomShape2d.cxx
index de8b9d4..3c5f604 100644
--- a/svx/source/customshapes/EnhancedCustomShape2d.cxx
+++ b/svx/source/customshapes/EnhancedCustomShape2d.cxx
@@ -1516,15 +1516,15 @@ void EnhancedCustomShape2d::CreateSubPath( sal_uInt16& rSrcPt, sal_uInt16& rSegm
&& ( nCoordHeight == pDefCustomShape->nCoordHeight ) )
bIsDefaultViewBox = true;
sal_Int32 j, nCount = pDefCustomShape->nVertices;//==3
- css::uno::Sequence< css::drawing::EnhancedCustomShapeParameterPair> seqCoordinates1, seqCoordinates2;
+ std::vector< css::drawing::EnhancedCustomShapeParameterPair> seqCoordinates1, seqCoordinates2;
- seqCoordinates1.realloc( nCount );
+ seqCoordinates1.resize( nCount );
for ( j = 0; j < nCount; j++ )
{
seqCoordinates1[j] = seqCoordinates[ rSrcPt + j];
}
- seqCoordinates2.realloc( nCount );
+ seqCoordinates2.resize( nCount );
for ( j = 0; j < nCount; j++ )
{
EnhancedCustomShape2d::SetEnhancedCustomShapeParameter( seqCoordinates2[ j ].First, pDefCustomShape->pVertices[ j ].nValA );
More information about the Libreoffice-commits
mailing list