diff options
| author | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:03:31 +0100 |
|---|---|---|
| committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2017-11-13 15:07:33 +0100 |
| commit | a7c24ca48995cf2bf436156302f96b91bf135409 (patch) | |
| tree | 953835509ff1b778833e78fd7b74b05e05e77c84 /plugins/KeyboardNotify/src/keyboard.cpp | |
| parent | 591ec17b1c99db7f120c22ca9fb20ae05fe78325 (diff) | |
Code modernize ...
* replace 0/NULL with nullptr [using clang-tidy]
Diffstat (limited to 'plugins/KeyboardNotify/src/keyboard.cpp')
| -rw-r--r-- | plugins/KeyboardNotify/src/keyboard.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/KeyboardNotify/src/keyboard.cpp b/plugins/KeyboardNotify/src/keyboard.cpp index eaa613c661..d8ea3dbfff 100644 --- a/plugins/KeyboardNotify/src/keyboard.cpp +++ b/plugins/KeyboardNotify/src/keyboard.cpp @@ -45,7 +45,7 @@ BOOL OpenKeyboardDevice() DefineDosDevice(DDD_RAW_TARGET_PATH, aux1, aux2);
mir_snwprintf(aux1, L"\\\\.\\Kbd%d", i);
- hKbdDev[i] = CreateFile(aux1, GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
+ hKbdDev[i] = CreateFile(aux1, GENERIC_WRITE, 0, nullptr, OPEN_EXISTING, 0, nullptr);
} while (hKbdDev[i] != INVALID_HANDLE_VALUE && ++i < MAX_KBDHANDLES);
@@ -66,7 +66,7 @@ BOOL ToggleKeyboardLights(BYTE byte) InputBuffer.LedFlags = byte;
for (i=0; i < MAX_KBDHANDLES && hKbdDev[i] != INVALID_HANDLE_VALUE; i++)
- result |= DeviceIoControl(hKbdDev[i], IOCTL_KEYBOARD_SET_INDICATORS, &InputBuffer, DataLength, NULL, 0, &ReturnedLength, NULL);
+ result |= DeviceIoControl(hKbdDev[i], IOCTL_KEYBOARD_SET_INDICATORS, &InputBuffer, DataLength, nullptr, 0, &ReturnedLength, nullptr);
return result;
}
@@ -81,7 +81,7 @@ void CloseKeyboardDevice() CloseHandle(hKbdDev[i]);
mir_snwprintf(aux, L"Kbd%d", i);
- DefineDosDevice(DDD_REMOVE_DEFINITION, aux, NULL);
+ DefineDosDevice(DDD_REMOVE_DEFINITION, aux, nullptr);
} while (hKbdDev[i] != INVALID_HANDLE_VALUE && ++i < MAX_KBDHANDLES);
}
|
