summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2014-02-22 10:54:44 +0100
committerMatteo Casalin <matteo.casalin@yahoo.com>2014-02-22 12:31:40 +0100
commitbb2637d0d016ba9f269a3ac63ead6c931632fa03 (patch)
treeff95fc7259815f463c12664680ba2b3e3e339564 /sw
parent0b9310f91cdea3feb4160512d2fb1ce774007de7 (diff)
sal_Bool to bool
Change-Id: If4b7f6a384a3f07f322022fc7cf31f07806e8776
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/inc/blink.hxx8
-rw-r--r--sw/source/core/text/blink.cxx4
2 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/inc/blink.hxx b/sw/source/core/inc/blink.hxx
index a5a865eabdb4..4c30e00a7e03 100644
--- a/sw/source/core/inc/blink.hxx
+++ b/sw/source/core/inc/blink.hxx
@@ -46,9 +46,9 @@ public:
const SwRootFrm* GetRootFrm() const{ return pFrm; }
const SwLinePortion *GetPortion() const{ return pPor; }
sal_uInt16 GetDirection() const { return nDir; }
- sal_Bool operator<( const SwBlinkPortion& rBlinkPortion ) const
+ bool operator<( const SwBlinkPortion& rBlinkPortion ) const
{ return (sal_IntPtr)pPor < (sal_IntPtr)rBlinkPortion.pPor; }
- sal_Bool operator==( const SwBlinkPortion& rBlinkPortion ) const
+ bool operator==( const SwBlinkPortion& rBlinkPortion ) const
{ return (sal_IntPtr)pPor == (sal_IntPtr)rBlinkPortion.pPor; }
};
@@ -58,7 +58,7 @@ class SwBlink
{
SwBlinkList aList;
AutoTimer aTimer;
- sal_Bool bVisible;
+ bool bVisible;
public:
SwBlink();
@@ -71,7 +71,7 @@ public:
void Replace( const SwLinePortion* pOld, const SwLinePortion* pNew );
void Delete( const SwLinePortion* pPor );
void FrmDelete( const SwRootFrm* pRoot );
- inline sal_Bool IsVisible() const { return bVisible ; }
+ inline bool IsVisible() const { return bVisible ; }
};
// Blink-Manager, global variable, see Blink.Cxx
diff --git a/sw/source/core/text/blink.cxx b/sw/source/core/text/blink.cxx
index 3b3e6aceec48..3e6cde412333 100644
--- a/sw/source/core/text/blink.cxx
+++ b/sw/source/core/text/blink.cxx
@@ -41,7 +41,7 @@ SwBlink *pBlink = NULL;
SwBlink::SwBlink()
{
- bVisible = sal_True;
+ bVisible = true;
// Prepare the timer
aTimer.SetTimeout( BLINK_ON_TIME );
aTimer.SetTimeoutHdl( LINK(this, SwBlink, Blinker) );
@@ -116,7 +116,7 @@ IMPL_LINK_NOARG(SwBlink, Blinker)
}
else // If the list is empty, the timer can be stopped
aTimer.Stop();
- return sal_True;
+ return 1;
}
void SwBlink::Insert( const Point& rPoint, const SwLinePortion* pPor,