Use nullptr

This commit is contained in:
Roland Winklmeier
2018-08-24 15:19:35 +02:00
parent d4608e6a5b
commit 9b3b645c12
3 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ namespace BlackInput
{
Q_ASSERT_X(g_keyboardWindows == nullptr, "CKeyboardWindows::init", "Windows supports only one keyboard instance. Cannot initialize a second one!");
g_keyboardWindows = this;
m_keyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, CKeyboardWindows::keyboardProc, GetModuleHandle(NULL), 0);
m_keyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, CKeyboardWindows::keyboardProc, GetModuleHandle(nullptr), 0);
return true;
}