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
@@ -10,7 +10,7 @@
const char* ffOptionsParseDisplayJsonConfig(FFOptionsDisplay* options, yyjson_val* root, yyjson_val** pkey) {
yyjson_val* object = yyjson_obj_get(root, "display");
if (!object) {
return NULL;
return nullptr;
}
if (!yyjson_is_obj(object)) {
return "Property 'display' must be an object";
@@ -571,11 +571,11 @@ const char* ffOptionsParseDisplayJsonConfig(FFOptionsDisplay* options, yyjson_va
}
}
return NULL;
return nullptr;
}
static inline void optionCheckString(const char* key, const char* value, FFstrbuf* buffer) {
if (value == NULL) {
if (value == nullptr) {
fprintf(stderr, "Error: usage: %s <str>\n", key);
exit(477);
}