]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/unix/thread.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / unix / thread.cpp
index 1ddcaaea4bcf947a50fb411f0991a86b8b47def9..42231934c00ed6c58b9e0ec766bee7cecf7f3ebf 100644 (file)
@@ -7,7 +7,7 @@ namespace Msp {
 
 void Thread::platform_join()
 {
-       pthread_join(_priv->handle, 0);
+       pthread_join(_priv->handle, nullptr);
 }
 
 void Thread::platform_kill()
@@ -17,7 +17,7 @@ void Thread::platform_kill()
 
 void Thread::platform_launch()
 {
-       pthread_create(&_priv->handle, 0, &Private::main_wrapper, this);
+       pthread_create(&_priv->handle, nullptr, &Private::main_wrapper, this);
 }
 
 void Thread::platform_setname()