From 1a3e7b7d5916a8fa588ca909a7507f59dd86ac74 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 10 Jan 2014 12:44:11 +0100 Subject: Use bool Change-Id: I1cb9aa1a06fde24d0b7c7ec0ad56994598ee1d4b --- tools/source/generic/poly.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index 580ab8940e57..93f4bb685ba5 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -1164,7 +1164,7 @@ public: Point EdgeSection( const Point& rPoint, int nEdge ) const; int VisibleSide( const Point& rPoint ) const; - int IsPolygon() const + bool IsPolygon() const { return maFirstPoint == maLastPoint; } virtual void Input( const Point& rPoint ); @@ -1658,9 +1658,9 @@ void Polygon::Read( SvStream& rIStream ) void Polygon::ImplWrite( SvStream& rOStream ) const { - sal_uInt8 bHasPolyFlags = mpImplPolygon->mpFlagAry != NULL; + bool bHasPolyFlags = mpImplPolygon->mpFlagAry != NULL; rOStream << *this; - rOStream.WriteUChar( bHasPolyFlags ); + rOStream.WriteUChar(sal_uInt8(bHasPolyFlags)); if ( bHasPolyFlags ) rOStream.Write( mpImplPolygon->mpFlagAry, mpImplPolygon->mnPoints ); -- cgit