Global: replaces NULL to nullptr

This commit is contained in:
李通洲
2026-07-10 18:08:04 +08:00
parent 873454191f
commit ba18705d2e
387 changed files with 2411 additions and 2411 deletions
+3 -3
View File
@@ -35,7 +35,7 @@ static const char* detectByIoctl(FFlist* devices) {
ffStrbufAppendF(&device->name, " (kbd%d)", kbdInfo.kb_index);
ffStrbufInit(&device->serial);
return NULL;
return nullptr;
}
#define MAX_UHID_KBDS 64
@@ -80,13 +80,13 @@ static const char* detectByUsbhid(FFlist* devices) {
hid_dispose_report_desc(repDesc);
}
return NULL;
return nullptr;
}
const char* ffDetectKeyboard(FFlist* devices /* List of FFKeyboardDevice */) {
detectByUsbhid(devices);
if (devices->length > 0) {
return NULL;
return nullptr;
}
return detectByIoctl(devices);
}