diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-14 22:53:09 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-17 17:55:17 +0100 |
commit | e59ae07a5c108bf6ec4eb670182c4cc046392ff0 (patch) | |
tree | 56fb4e637be91b53fb388a0379c0737b52bb3323 | |
parent | d84cf2de01f17f2617846135081a819ce74dd87a (diff) |
salhelper: sal_Bool -> bool
Change-Id: Ibbfc597ec23dbc7605b2fbd02623ed4c62e4cd5c
-rw-r--r-- | salhelper/source/timer.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/salhelper/source/timer.cxx b/salhelper/source/timer.cxx index 6b8a5ad13fd1..164a5a87609f 100644 --- a/salhelper/source/timer.cxx +++ b/salhelper/source/timer.cxx @@ -39,13 +39,13 @@ public: ~TimerManager(); /// register timer - sal_Bool SAL_CALL registerTimer(salhelper::Timer* pTimer); + bool SAL_CALL registerTimer(salhelper::Timer* pTimer); /// unregister timer - sal_Bool SAL_CALL unregisterTimer(salhelper::Timer* pTimer); + bool SAL_CALL unregisterTimer(salhelper::Timer* pTimer); /// lookup timer - sal_Bool SAL_CALL lookupTimer(const salhelper::Timer* pTimer); + bool SAL_CALL lookupTimer(const salhelper::Timer* pTimer); /// retrieves the "Singleton" TimerManager Instance static TimerManager* SAL_CALL getTimerManager(); @@ -283,13 +283,13 @@ TimerManager* TimerManager::getTimerManager() return m_pManager; } -sal_Bool TimerManager::registerTimer(Timer* pTimer) +bool TimerManager::registerTimer(Timer* pTimer) { OSL_ASSERT(pTimer); if ( pTimer == 0 ) { - return sal_False; + return false; } osl::MutexGuard Guard(m_Lock); @@ -321,16 +321,16 @@ sal_Bool TimerManager::registerTimer(Timer* pTimer) m_notEmpty.set(); } - return sal_True; + return true; } -sal_Bool TimerManager::unregisterTimer(Timer* pTimer) +bool TimerManager::unregisterTimer(Timer* pTimer) { OSL_ASSERT(pTimer); if ( pTimer == 0 ) { - return sal_False; + return false; } // lock access @@ -344,21 +344,21 @@ sal_Bool TimerManager::unregisterTimer(Timer* pTimer) { // remove timer from list *ppIter = (*ppIter)->m_pNext; - return sal_True; + return true; } ppIter= &((*ppIter)->m_pNext); } - return sal_False; + return false; } -sal_Bool TimerManager::lookupTimer(const Timer* pTimer) +bool TimerManager::lookupTimer(const Timer* pTimer) { OSL_ASSERT(pTimer); if ( pTimer == 0 ) { - return sal_False; + return false; } // lock access @@ -369,11 +369,11 @@ sal_Bool TimerManager::lookupTimer(const Timer* pTimer) { if (pIter == pTimer) { - return sal_True; + return true; } } - return sal_False; + return false; } void TimerManager::checkForTimeout() |