[Libreoffice-commits] core.git: sal/osl

Tor Lillqvist tml at collabora.com
Thu Apr 9 13:50:21 PDT 2015


 sal/osl/unx/mutex.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 53d7c88da82f6d16c0c9a45a86a3f9d505764605
Author: Tor Lillqvist <tml at collabora.com>
Date:   Thu Apr 9 23:49:26 2015 +0300

    WaE: VarDecl, use "bool" instead of "sal_Bool"
    
    Change-Id: I0b868edad579f9ccf46f6d9f6015086557e528da

diff --git a/sal/osl/unx/mutex.cxx b/sal/osl/unx/mutex.cxx
index 4bc726d..7c8b365 100644
--- a/sal/osl/unx/mutex.cxx
+++ b/sal/osl/unx/mutex.cxx
@@ -117,7 +117,7 @@ sal_Bool SAL_CALL osl_acquireMutex(oslMutexImpl *pMutex)
 
 sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutexImpl *pMutex)
 {
-    sal_Bool result = sal_False;
+    bool result = false;
 
     SAL_WARN_IF(!pMutex, "sal.osl.mutex", "null pMutex");
 
@@ -126,7 +126,7 @@ sal_Bool SAL_CALL osl_tryToAcquireMutex(oslMutexImpl *pMutex)
         int nRet = 0;
         nRet = pthread_mutex_trylock(&(pMutex->mutex));
         if ( nRet == 0  )
-            result = sal_True;
+            result = true;
     }
 
     SAL_INFO("sal.osl.mutex", "osl_tryToAcquireMutex(" << pMutex << "): " << (result ? "YES" : "NO"));


More information about the Libreoffice-commits mailing list