summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-10 12:44:11 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-10 17:11:50 +0100
commit1a3e7b7d5916a8fa588ca909a7507f59dd86ac74 (patch)
treebb3b8e1e9eb4075489ef284f35b96d8325490b88 /tools
parentdda2d8718193230780f4fa2b964ef62ebaeb0367 (diff)
Use bool
Change-Id: I1cb9aa1a06fde24d0b7c7ec0ad56994598ee1d4b
Diffstat (limited to 'tools')
-rw-r--r--tools/source/generic/poly.cxx6
1 files changed, 3 insertions, 3 deletions
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 );