diff options
author | Pierre Ossman <ossman@cendio.se> | 2024-04-02 16:13:23 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2024-06-24 13:42:54 +0200 |
commit | 139f0e8a4b81fe3dcd9476ec5ee16ea5e74af901 (patch) | |
tree | 8d06ede9e14516516a44c5ed710058003088eec2 /win/rfb_win32/RegConfig.cxx | |
parent | 45198e5235f4b724277665b242cf855a0ff4518b (diff) | |
download | tigervnc-139f0e8a4b81fe3dcd9476ec5ee16ea5e74af901.tar.gz tigervnc-139f0e8a4b81fe3dcd9476ec5ee16ea5e74af901.zip |
Use nullptr in all C++ code
It's more readable than 0, and a bit safer than NULL, so let's try to
follow modern norms.
Diffstat (limited to 'win/rfb_win32/RegConfig.cxx')
-rw-r--r-- | win/rfb_win32/RegConfig.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/win/rfb_win32/RegConfig.cxx b/win/rfb_win32/RegConfig.cxx index 38ca52f9..770330ce 100644 --- a/win/rfb_win32/RegConfig.cxx +++ b/win/rfb_win32/RegConfig.cxx @@ -35,7 +35,10 @@ using namespace rfb::win32; static LogWriter vlog("RegConfig"); -RegConfig::RegConfig(EventManager* em) : eventMgr(em), event(CreateEvent(0, TRUE, FALSE, 0)), callback(0) { +RegConfig::RegConfig(EventManager* em) + : eventMgr(em), event(CreateEvent(nullptr, TRUE, FALSE, nullptr)), + callback(nullptr) +{ if (em->addEvent(event, this)) eventMgr = em; } @@ -110,7 +113,7 @@ void RegConfigThread::worker() { BOOL result = 0; MSG msg; thread_id = GetCurrentThreadId(); - while ((result = eventMgr.getMessage(&msg, 0, 0, 0)) > 0) {} + while ((result = eventMgr.getMessage(&msg, nullptr, 0, 0)) > 0) {} if (result < 0) throw rdr::SystemException("RegConfigThread failed", GetLastError()); } |