From dc96e0b87ad11b3bde1d98f8656b7fc8bf94d623 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 27 Jan 2020 09:22:57 +0100 Subject: [PATCH] Use properly typed variable for iteration Change-Id: I5fa9a889922f41be3f124ae0f66afac35130f41a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87490 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- filter/source/msfilter/msdffimp.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 7b5142788b08..753b3b11a69e 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -658,12 +658,13 @@ void SvxMSDffManager::SolveSolver( const SvxMSDffSolverContainer& rSolver ) const OUString sSegments( "Segments" ); const OUString sCoordinates( "Coordinates" ); - sal_uInt32 k, nPt = nC; + sal_uInt32 nPt = nC; css::uno::Sequence< css::drawing::EnhancedCustomShapeSegment > aSegments; pAny = aGeometryItem.GetPropertyValueByName( sPath, sSegments ); if ( pAny && (*pAny >>= aSegments) ) { - for ( nPt = 0, k = 1; nC && ( k < static_cast(aSegments.getLength()) ); k++ ) + nPt = 0; + for ( sal_Int32 k = 1; nC && ( k < aSegments.getLength() ); k++ ) { sal_Int16 j, nCnt2 = aSegments[ k ].Count; if ( aSegments[ k ].Command != EnhancedCustomShapeSegmentCommand::UNKNOWN )