mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-06 13:14:21 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user