mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 22:14:20 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -17,7 +17,7 @@ static void appendOutputColor(FFstrbuf* buffer, const FFModuleArgs* module) {
|
||||
const char* ffPercentParseTypeJsonConfig(yyjson_val* jsonVal, FFPercentageTypeFlags* result) {
|
||||
if (yyjson_is_uint(jsonVal)) {
|
||||
*result = (FFPercentageTypeFlags) yyjson_get_uint(jsonVal);
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
if (yyjson_is_arr(jsonVal)) {
|
||||
FFPercentageTypeFlags flags = 0;
|
||||
@@ -45,7 +45,7 @@ const char* ffPercentParseTypeJsonConfig(yyjson_val* jsonVal, FFPercentageTypeFl
|
||||
}
|
||||
|
||||
*result = flags;
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return "Error: usage: percent.type must be a number or an array of strings";
|
||||
@@ -90,7 +90,7 @@ void ffPercentAppendBar(FFstrbuf* buffer, double percent, FFPercentageModuleConf
|
||||
|
||||
bool monochrome = (percentType & FF_PERCENTAGE_TYPE_BAR_MONOCHROME_BIT) || !autoColorElapsed;
|
||||
if (!options->pipe && options->barColorElapsed.length > 0 && monochrome) {
|
||||
const char* color = NULL;
|
||||
const char* color = nullptr;
|
||||
if (!autoColorElapsed) {
|
||||
color = options->barColorElapsed.chars;
|
||||
} else if (green <= yellow) {
|
||||
|
||||
Reference in New Issue
Block a user