mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-29 16:26:39 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -3,20 +3,20 @@
|
||||
#include "common/smbios.h"
|
||||
|
||||
const char* ffDetectHost(FFHostResult* host) {
|
||||
const char* error = NULL;
|
||||
const char* error = nullptr;
|
||||
if ((error = ffSysctlGetString(CTL_HW, HW_PRODUCT, &host->name))) {
|
||||
return error;
|
||||
}
|
||||
ffCleanUpSmbiosValue(&host->name);
|
||||
if (ffSysctlGetString(CTL_HW, HW_VENDOR, &host->vendor) == NULL) {
|
||||
if (ffSysctlGetString(CTL_HW, HW_VENDOR, &host->vendor) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->vendor);
|
||||
}
|
||||
if (ffSysctlGetString(CTL_HW, HW_VERSION, &host->version) == NULL) {
|
||||
if (ffSysctlGetString(CTL_HW, HW_VERSION, &host->version) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->version);
|
||||
}
|
||||
if (ffSysctlGetString(CTL_HW, HW_SERIALNO, &host->serial) == NULL) {
|
||||
if (ffSysctlGetString(CTL_HW, HW_SERIALNO, &host->serial) == nullptr) {
|
||||
ffCleanUpSmbiosValue(&host->serial);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user