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
+4 -4
View File
@@ -5,17 +5,17 @@
const char* ffDetectLocale(FFstrbuf* result) {
ffStrbufAppendS(result, getenv("LC_ALL"));
if (result->length > 0) {
return NULL;
return nullptr;
}
ffStrbufAppendS(result, getenv("LANG"));
if (result->length > 0) {
return NULL;
return nullptr;
}
ffStrbufAppendS(result, setlocale(LC_TIME, NULL));
ffStrbufAppendS(result, setlocale(LC_TIME, nullptr));
if (result->length > 0) {
return NULL;
return nullptr;
}
return "Failed to detect locale";
+1 -1
View File
@@ -12,5 +12,5 @@ const char* ffDetectLocale(FFstrbuf* result) {
ffStrbufSetNWS(result, (uint32_t) size - 1, name);
return NULL;
return nullptr;
}