diff options
author | David Robillard <d@drobilla.net> | 2023-02-05 01:49:34 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-05 01:49:34 -0500 |
commit | a6728f63b2e20e2dcfb56d338371d3ef1f3a7569 (patch) | |
tree | 390f7fa8d94b98af789904611cb8c92d896ac578 | |
parent | c4f719b1831e35663163e09a0d692c909c09d95f (diff) | |
download | raul-a6728f63b2e20e2dcfb56d338371d3ef1f3a7569.tar.gz raul-a6728f63b2e20e2dcfb56d338371d3ef1f3a7569.tar.bz2 raul-a6728f63b2e20e2dcfb56d338371d3ef1f3a7569.zip |
Replace stray uses of "NULL"
-rw-r--r-- | include/raul/Semaphore.hpp | 6 |
1 files 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<Rep, Period>& wait) inline bool Semaphore::init(unsigned initial) { - if (!(_sem = - CreateSemaphore(NULL, static_cast<LONG>(initial), LONG_MAX, NULL))) { + if (!(_sem = CreateSemaphore( + nullptr, static_cast<LONG>(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 |