diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-28 21:01:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-28 21:01:54 +0000 |
commit | 162cd5d4fee7611e6b9e84cfbfddc81cbb869650 (patch) | |
tree | 1ab229fa6ce2f187eda05eea5213378bc864ccf5 /filter/source/graphicfilter/ipict/ipict.cxx | |
parent | 26ea6d50b3f0f82d4035b367811f8edcc49ee23e (diff) |
tidy this a titch
Change-Id: I71153579a193abc209a08a0f076ee50cf8ec5d06
Diffstat (limited to 'filter/source/graphicfilter/ipict/ipict.cxx')
-rw-r--r-- | filter/source/graphicfilter/ipict/ipict.cxx | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/filter/source/graphicfilter/ipict/ipict.cxx b/filter/source/graphicfilter/ipict/ipict.cxx index cf54239fb9ef..4003b0fd49c7 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; } |