[Libreoffice-commits] core.git: filter/source
Caolán McNamara
caolanm at redhat.com
Tue Feb 28 21:02:59 UTC 2017
filter/source/graphicfilter/ipict/ipict.cxx | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
New commits:
commit 162cd5d4fee7611e6b9e84cfbfddc81cbb869650
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Feb 28 21:01:24 2017 +0000
tidy this a titch
Change-Id: I71153579a193abc209a08a0f076ee50cf8ec5d06
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx
index cf54239..4003b0f 100644
--- a/filter/source/graphicfilter/ipict/ipict.cxx
+++ b/filter/source/graphicfilter/ipict/ipict.cxx
@@ -454,18 +454,16 @@ void PictReader::ReadRectangle(Rectangle & rRect)
SAL_INFO("filter.pict", "ReadRectangle: " << rRect);
}
-
sal_uLong PictReader::ReadPolygon(tools::Polygon & rPoly)
{
- sal_uInt16 nSize,i;
- sal_uLong nDataSize;
-
- pPict->ReadUInt16( nSize );
+ sal_uInt16 nSize(0);
+ pPict->ReadUInt16(nSize);
pPict->SeekRel(8);
- nDataSize=(sal_uLong)nSize;
+ sal_uLong nDataSize = (sal_uLong)nSize;
nSize=(nSize-10)/4;
rPoly.SetSize(nSize);
- for (i=0; i<nSize; i++) rPoly.SetPoint(ReadPoint(),i);
+ for (sal_uInt16 i = 0; i < nSize; ++i)
+ rPoly.SetPoint(ReadPoint(), i);
return nDataSize;
}
More information about the Libreoffice-commits
mailing list