summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/source/generic/poly2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/source/generic/poly2.cxx b/tools/source/generic/poly2.cxx
index 3c172bf206b5..f15759e8b481 100644
--- a/tools/source/generic/poly2.cxx
+++ b/tools/source/generic/poly2.cxx
@@ -572,9 +572,9 @@ SvStream& ReadPolyPolygon( SvStream& rIStream, tools::PolyPolygon& rPolyPoly )
DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" );
Polygon* pPoly;
- sal_uInt16 nPolyCount;
+ sal_uInt16 nPolyCount(0);
- // read number of polygons
+ // Read number of polygons
rIStream.ReadUInt16( nPolyCount );
if( nPolyCount )
@@ -621,7 +621,7 @@ void PolyPolygon::Read( SvStream& rIStream )
DBG_ASSERTWARNING( rIStream.GetVersion(), "PolyPolygon::>> - Solar-Version not set on rIStream" );
Polygon* pPoly;
- sal_uInt16 nPolyCount;
+ sal_uInt16 nPolyCount(0);
// Read number of polygons
rIStream.ReadUInt16( nPolyCount );