Kaydet (Commit) 157fb921 authored tarafından Caolán McNamara's avatar Caolán McNamara

initialize nPolyCount

Change-Id: I774f0ea2576063b7d1f7005e7df41ae52fa9037c
üst f6047410
...@@ -572,9 +572,9 @@ SvStream& ReadPolyPolygon( SvStream& rIStream, tools::PolyPolygon& rPolyPoly ) ...@@ -572,9 +572,9 @@ SvStream& ReadPolyPolygon( SvStream& rIStream, tools::PolyPolygon& rPolyPoly )
DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" ); DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" );
Polygon* pPoly; Polygon* pPoly;
sal_uInt16 nPolyCount; sal_uInt16 nPolyCount(0);
// read number of polygons // Read number of polygons
rIStream.ReadUInt16( nPolyCount ); rIStream.ReadUInt16( nPolyCount );
if( nPolyCount ) if( nPolyCount )
...@@ -621,7 +621,7 @@ void PolyPolygon::Read( SvStream& rIStream ) ...@@ -621,7 +621,7 @@ void PolyPolygon::Read( SvStream& rIStream )
DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" ); DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" );
Polygon* pPoly; Polygon* pPoly;
sal_uInt16 nPolyCount; sal_uInt16 nPolyCount(0);
// Read number of polygons // Read number of polygons
rIStream.ReadUInt16( nPolyCount ); rIStream.ReadUInt16( nPolyCount );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment