mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 14:10:11 +01:00
Global: replaces NULL to nullptr
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
bool ffPrintOpenCL(FFOpenCLOptions* options) {
|
||||
FFOpenCLResult* result = ffDetectOpenCL();
|
||||
|
||||
if (result->error != NULL) {
|
||||
if (result->error != nullptr) {
|
||||
ffPrintError(FF_OPENCL_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "%s", result->error);
|
||||
return false;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ void ffGenerateOpenCLJsonConfig(FFOpenCLOptions* options, yyjson_mut_doc* doc, y
|
||||
bool ffGenerateOpenCLJsonResult(FF_A_UNUSED FFOpenCLOptions* options, yyjson_mut_doc* doc, yyjson_mut_val* module) {
|
||||
FFOpenCLResult* result = ffDetectOpenCL();
|
||||
|
||||
if (result->error != NULL) {
|
||||
if (result->error != nullptr) {
|
||||
yyjson_mut_obj_add_str(doc, module, "error", result->error);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user