diff options
author | Noel Grandin <noel@peralex.com> | 2014-02-18 15:22:59 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-02-19 13:05:05 +0200 |
commit | 53516e9c76270401cebbf95b6056b8990a50222a (patch) | |
tree | db18daa76fcc6dd11bea232fd4fe23aea879603e /sc/source/ui | |
parent | 9d03b8e998d219dfa0bdd05891493d79c420e96f (diff) |
sal_Bool->bool
Change-Id: I857b81ea1eea27554980ca7c7a9f771d6aa7db61
Diffstat (limited to 'sc/source/ui')
-rw-r--r-- | sc/source/ui/docshell/servobj.cxx | 20 | ||||
-rw-r--r-- | sc/source/ui/inc/servobj.hxx | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sc/source/ui/docshell/servobj.cxx b/sc/source/ui/docshell/servobj.cxx index 48713801a4bc..e2195572c57a 100644 --- a/sc/source/ui/docshell/servobj.cxx +++ b/sc/source/ui/docshell/servobj.cxx @@ -31,7 +31,7 @@ using namespace formula; // ----------------------------------------------------------------------- -static sal_Bool lcl_FillRangeFromName( ScRange& rRange, ScDocShell* pDocSh, const OUString& rName ) +static bool lcl_FillRangeFromName( ScRange& rRange, ScDocShell* pDocSh, const OUString& rName ) { if (pDocSh) { @@ -43,7 +43,7 @@ static sal_Bool lcl_FillRangeFromName( ScRange& rRange, ScDocShell* pDocSh, cons if (pData) { if ( pData->IsValidReference( rRange ) ) - return sal_True; + return true; } } } @@ -147,7 +147,7 @@ sal_Bool ScServerObject::GetData( if ( lcl_FillRangeFromName( aNew, pDocSh, aItemStr ) && aNew != aRange ) { aRange = aNew; - bRefreshListener = sal_True; + bRefreshListener = true; } } @@ -199,7 +199,7 @@ sal_Bool ScServerObject::GetData( void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { - sal_Bool bDataChanged = false; + bool bDataChanged = false; // DocShell can't be tested via type info, because SFX_HINT_DYING comes from the dtor if ( &rBC == pDocSh ) @@ -220,7 +220,7 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) // check if named range was modified ScRange aNew; if ( lcl_FillRangeFromName( aNew, pDocSh, aItemStr ) && aNew != aRange ) - bDataChanged = sal_True; + bDataChanged = true; } } else @@ -229,14 +229,14 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) const ScHint* pScHint = PTR_CAST( ScHint, &rHint ); if (pScHint && (pScHint->GetId() & SC_HINT_DATACHANGED)) - bDataChanged = sal_True; + bDataChanged = true; else if (rHint.ISA(ScAreaChangedHint)) // position of broadcaster changed { ScRange aNewRange = ((const ScAreaChangedHint&)rHint).GetRange(); if ( aRange != aNewRange ) { - bRefreshListener = sal_True; - bDataChanged = sal_True; + bRefreshListener = true; + bDataChanged = true; } } else if (rHint.ISA(SfxSimpleHint)) @@ -246,8 +246,8 @@ void ScServerObject::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) { // If the range is being deleted, listening must be restarted // after the deletion is complete (done in GetData) - bRefreshListener = sal_True; - bDataChanged = sal_True; + bRefreshListener = true; + bDataChanged = true; } } } diff --git a/sc/source/ui/inc/servobj.hxx b/sc/source/ui/inc/servobj.hxx index d0be4d692ec0..376984dd7120 100644 --- a/sc/source/ui/inc/servobj.hxx +++ b/sc/source/ui/inc/servobj.hxx @@ -46,7 +46,7 @@ private: ScDocShell* pDocSh; ScRange aRange; OUString aItemStr; - sal_Bool bRefreshListener; + bool bRefreshListener; void Clear(); |