]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/windows/thread.cpp
Use nullptr instead of 0 for pointers
[libs/core.git] / source / core / windows / thread.cpp
index ab02c4d04094394e384b91defd717b70ac5918df..8890a70fb1cbd0eaff8cf32cdea008950c92e43b 100644 (file)
@@ -6,18 +6,18 @@ namespace Msp {
 
 void Thread::platform_join()
 {
-       WaitForSingleObject(priv_->handle, INFINITE);
+       WaitForSingleObject(_priv->handle, INFINITE);
 }
 
 void Thread::platform_kill()
 {
-       TerminateThread(priv_->handle, 0);
+       TerminateThread(_priv->handle, 0);
 }
 
 void Thread::platform_launch()
 {
        DWORD dummy;  // Win9x needs the lpTthreadId parameter
-       priv_->handle = CreateThread(0, 0, &Private::main_wrapper, this, 0, &dummy);
+       _priv->handle = CreateThread(nullptr, 0, &Private::main_wrapper, this, 0, &dummy);
 }
 
 void Thread::platform_setname()