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:
@@ -51,7 +51,7 @@ static const char* detectFsLabel(struct statfs* fs, FFDisk* disk) {
|
||||
ffStrbufSetS(&disk->name, str ? str + 1 : provider->lg_name);
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
#else
|
||||
static const char* detectFsLabel(FF_A_UNUSED struct statfs* fs, FF_A_UNUSED FFDisk* disk) {
|
||||
@@ -127,14 +127,14 @@ static void detectFsInfo(struct statfs* fs, FFDisk* disk) {
|
||||
|
||||
const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) {
|
||||
#ifndef __NetBSD__
|
||||
int size = getfsstat(NULL, 0, MNT_WAIT);
|
||||
int size = getfsstat(nullptr, 0, MNT_WAIT);
|
||||
if (size <= 0) {
|
||||
return "getfsstat(NULL, 0, MNT_WAIT) failed";
|
||||
return "getfsstat(nullptr, 0, MNT_WAIT) failed";
|
||||
}
|
||||
#else
|
||||
int size = getvfsstat(NULL, 0, ST_WAIT);
|
||||
int size = getvfsstat(nullptr, 0, ST_WAIT);
|
||||
if (size <= 0) {
|
||||
return "getvfsstat(NULL, 0, ST_WAIT) failed";
|
||||
return "getvfsstat(nullptr, 0, ST_WAIT) failed";
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -210,5 +210,5 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) {
|
||||
#endif
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user