From a6728f63b2e20e2dcfb56d338371d3ef1f3a7569 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Feb 2023 01:49:34 -0500 Subject: Replace stray uses of "NULL" --- include/raul/Semaphore.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp index 6194a5e..75d0a62 100644 --- a/include/raul/Semaphore.hpp +++ b/include/raul/Semaphore.hpp @@ -153,8 +153,8 @@ Semaphore::timed_wait(const std::chrono::duration& wait) inline bool Semaphore::init(unsigned initial) { - if (!(_sem = - CreateSemaphore(NULL, static_cast(initial), LONG_MAX, NULL))) { + if (!(_sem = CreateSemaphore( + nullptr, static_cast(initial), LONG_MAX, nullptr))) { return false; } @@ -170,7 +170,7 @@ Semaphore::destroy() inline void Semaphore::post() { - ReleaseSemaphore(_sem, 1, NULL); + ReleaseSemaphore(_sem, 1, nullptr); } inline bool -- cgit v1.2.1