Style: Apply clang-tidy's modernize-use-nullptr

This commit is contained in:
Rémi Verschelde 2021-04-05 14:02:50 +02:00
parent 65a2888057
commit 9bbe51dc27
No known key found for this signature in database
GPG key ID: C3336907360768E1
21 changed files with 50 additions and 50 deletions

View file

@ -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;
}