summaryrefslogtreecommitdiff
path: root/sw/inc/swrect.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-25 14:00:35 +0200
committerNoel Grandin <noel@peralex.com>2014-04-30 08:44:42 +0200
commit6aa35db39311dcd7965c9c9c21fcf4143a1f9b43 (patch)
tree04320eaf8c7481c1b496460624ee20ec11360ac2 /sw/inc/swrect.hxx
parent1417061d1b2c110e7e690523a544b58e7ffd05c0 (diff)
sw: sal_Bool->bool
Change-Id: I324a0ffde2ddcca105451c19e7aadcfad15211d8
Diffstat (limited to 'sw/inc/swrect.hxx')
-rw-r--r--sw/inc/swrect.hxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/sw/inc/swrect.hxx b/sw/inc/swrect.hxx
index 83868781ff35..c2bc81be3590 100644
--- a/sw/inc/swrect.hxx
+++ b/sw/inc/swrect.hxx
@@ -79,12 +79,12 @@ public:
SwRect &_Intersection( const SwRect &rRect );
inline SwRect GetIntersection( const SwRect& rRect ) const;
- sal_Bool IsInside( const Point& rPOINT ) const;
- sal_Bool IsNear(const Point& rPoint, long nTolerance ) const;
- sal_Bool IsInside( const SwRect& rRect ) const;
- sal_Bool IsOver( const SwRect& rRect ) const;
- inline sal_Bool HasArea() const;
- inline sal_Bool IsEmpty() const;
+ bool IsInside( const Point& rPOINT ) const;
+ bool IsNear(const Point& rPoint, long nTolerance ) const;
+ bool IsInside( const SwRect& rRect ) const;
+ bool IsOver( const SwRect& rRect ) const;
+ inline bool HasArea() const;
+ inline bool IsEmpty() const;
inline void Clear();
inline SwRect &operator = ( const SwRect &rRect );
@@ -138,17 +138,17 @@ public:
long GetBottomDistance( long ) const;
long GetRightDistance( long ) const;
long GetTopDistance( long ) const;
- sal_Bool OverStepLeft( long ) const;
- sal_Bool OverStepBottom( long ) const;
- sal_Bool OverStepTop( long ) const;
- sal_Bool OverStepRight( long ) const;
+ bool OverStepLeft( long ) const;
+ bool OverStepBottom( long ) const;
+ bool OverStepTop( long ) const;
+ bool OverStepRight( long ) const;
};
typedef void (SwRect:: *SwRectSet)( const long nNew );
typedef long (SwRect:: *SwRectGet)() const;
typedef const Point (SwRect:: *SwRectPoint)() const;
typedef const Size (SwRect:: *SwRectSize)() const;
-typedef sal_Bool (SwRect:: *SwRectMax)( long ) const;
+typedef bool (SwRect:: *SwRectMax)( long ) const;
typedef long (SwRect:: *SwRectDist)( long ) const;
typedef void (SwRect:: *SwRectSetTwice)( long, long );
typedef void (SwRect:: *SwRectSetPos)( const Point& );
@@ -300,11 +300,11 @@ inline SwRect SwRect::GetIntersection( const SwRect& rRect ) const
return SwRect( *this ).Intersection( rRect );
}
-inline sal_Bool SwRect::HasArea() const
+inline bool SwRect::HasArea() const
{
return !IsEmpty();
}
-inline sal_Bool SwRect::IsEmpty() const
+inline bool SwRect::IsEmpty() const
{
return !(m_Size.getHeight() && m_Size.getWidth());
}