mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 08:13:44 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -3,23 +3,23 @@
|
||||
#include "common/smbios.h"
|
||||
|
||||
const char* ffDetectHost(FFHostResult* host) {
|
||||
const char* error = NULL;
|
||||
const char* error = nullptr;
|
||||
if ((error = ffSysctlGetString("machdep.dmi.system-product", &host->name))) {
|
||||
return error;
|
||||
}
|
||||
ffCleanUpSmbiosValue(&host->name);
|
||||
if (ffSysctlGetString("machdep.dmi.system-vendor", &host->vendor) == NULL) {
|
||||
if (ffSysctlGetString("machdep.dmi.system-vendor", &host->vendor) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->vendor);
|
||||
}
|
||||
if (ffSysctlGetString("machdep.dmi.system-version", &host->version) == NULL) {
|
||||
if (ffSysctlGetString("machdep.dmi.system-version", &host->version) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->version);
|
||||
}
|
||||
if (ffSysctlGetString("machdep.dmi.system-serial", &host->serial) == NULL) {
|
||||
if (ffSysctlGetString("machdep.dmi.system-serial", &host->serial) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->serial);
|
||||
}
|
||||
if (ffSysctlGetString("machdep.dmi.system-uuid", &host->uuid) == NULL) {
|
||||
if (ffSysctlGetString("machdep.dmi.system-uuid", &host->uuid) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->uuid);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user