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

Stephan Bergmann sbergman at redhat.com
Thu Jan 7 03:34:52 PST 2016


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

New commits:
commit 73c13ac221b4bea0b8aacacc9d1633be594ff8b7
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jan 7 12:34:26 2016 +0100

    loplugin:nullptr
    
    Change-Id: I9b12524ddbe3cd26800af53415fa593984f2b816

diff --git a/sal/osl/unx/thread.cxx b/sal/osl/unx/thread.cxx
index 4e349f2..b57cd95 100644
--- a/sal/osl/unx/thread.cxx
+++ b/sal/osl/unx/thread.cxx
@@ -273,7 +273,7 @@ static oslThread osl_thread_create_Impl (
 
 #if defined OPENBSD || ((defined MACOSX || defined LINUX) && !ENABLE_RUNTIME_OPTIMIZATIONS)
     if (pthread_attr_init(&attr) != 0)
-        return 0;
+        return nullptr;
 
 #if defined OPENBSD
     stacksize = 262144;
@@ -284,7 +284,7 @@ static oslThread osl_thread_create_Impl (
 #endif
     if (pthread_attr_setstacksize(&attr, stacksize) != 0) {
         pthread_attr_destroy(&attr);
-        return 0;
+        return nullptr;
     }
 #endif
 


More information about the Libreoffice-commits mailing list