summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-11 16:39:17 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-11 17:33:50 +0100
commit157fb92164a4a779a12c6447fe5c90a45fd35437 (patch)
tree6a114a22c1d7aa1ecd0cf3f1ad9b6b014cb16d1b /tools
parentf6047410e185056b45a28e0cdae94080261def47 (diff)
initialize nPolyCount
Change-Id: I774f0ea2576063b7d1f7005e7df41ae52fa9037c
Diffstat (limited to 'tools')
-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 );