[Libreoffice-commits] core.git: filter/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Mon Jan 27 12:50:39 UTC 2020
filter/source/msfilter/msdffimp.cxx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit dc96e0b87ad11b3bde1d98f8656b7fc8bf94d623
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Jan 27 09:22:57 2020 +0100
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jan 27 13:49:51 2020 +0100
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 at redhat.com>
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<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 )
More information about the Libreoffice-commits
mailing list