You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
@@ -397,7 +397,7 @@ List<ClassAPI> generate_c_api_classes() {
|
||||
arg_type = "Variant";
|
||||
} else if (arg_info.type == Variant::OBJECT) {
|
||||
arg_type = arg_info.class_name;
|
||||
if (arg_type == "") {
|
||||
if (arg_type.is_empty()) {
|
||||
arg_type = Variant::get_type_name(arg_info.type);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user