mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 14:41:07 +00:00
Style: Apply clang-tidy's modernize-use-nullptr
This commit is contained in:
parent
65a2888057
commit
9bbe51dc27
21 changed files with 50 additions and 50 deletions
|
|
@ -178,7 +178,7 @@ void JoypadLinux::monitor_joypads(udev *p_udev) {
|
|||
select() ensured that this will not block. */
|
||||
dev = udev_monitor_receive_device(mon);
|
||||
|
||||
if (dev && udev_device_get_devnode(dev) != 0) {
|
||||
if (dev && udev_device_get_devnode(dev) != nullptr) {
|
||||
MutexLock lock(joy_mutex);
|
||||
String action = udev_device_get_action(dev);
|
||||
const char *devnode = udev_device_get_devnode(dev);
|
||||
|
|
@ -212,7 +212,7 @@ void JoypadLinux::monitor_joypads() {
|
|||
struct dirent *current;
|
||||
char fname[64];
|
||||
|
||||
while ((current = readdir(input_directory)) != NULL) {
|
||||
while ((current = readdir(input_directory)) != nullptr) {
|
||||
if (strncmp(current->d_name, "event", 5) != 0) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue