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 <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann
2020-01-27 09:22:57 +01:00
parent 09a2432c59
commit dc96e0b87a

View File

@@ -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<sal_uInt32>(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 )