Global: replaces NULL to nullptr

This commit is contained in:
李通洲
2026-07-10 18:08:04 +08:00
parent 873454191f
commit ba18705d2e
387 changed files with 2411 additions and 2411 deletions
+3 -3
View File
@@ -32,7 +32,7 @@ const char* ffGpuDetectDriverVersion(FFlist* gpus)
ffStrbufAppendS(&x->driver, version.UTF8String);
}
}
return NULL;
return nullptr;
}
return "Unsupported macOS version";
}
@@ -43,7 +43,7 @@ const char* ffGpuDetectMetal(FFlist* gpus)
{
for (id<MTLDevice> device in MTLCopyAllDevices())
{
FFGPUResult* gpu = NULL;
FFGPUResult* gpu = nullptr;
FF_LIST_FOR_EACH(FFGPUResult, x, *gpus)
{
if (x->deviceId == device.registryID)
@@ -81,7 +81,7 @@ const char* ffGpuDetectMetal(FFlist* gpus)
gpu->shared.total = device.recommendedMaxWorkingSetSize;
#endif
}
return NULL;
return nullptr;
}
return "Metal API is not supported by this macOS version";
}