mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
@ -71,7 +71,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
|||
while ((k = t->method_map.next(k))) {
|
||||
String name = k->operator String();
|
||||
|
||||
ERR_CONTINUE(name.empty());
|
||||
ERR_CONTINUE(name.is_empty());
|
||||
|
||||
if (name[0] == '_') {
|
||||
continue; // Ignore non-virtual methods that start with an underscore
|
||||
|
@ -122,7 +122,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
|||
method_dict["hint_flags"] = mb->get_hint_flags();
|
||||
}
|
||||
|
||||
if (!methods.empty()) {
|
||||
if (!methods.is_empty()) {
|
||||
class_dict["methods"] = methods;
|
||||
}
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
|||
constant_dict["value"] = t->constant_map[F->get()];
|
||||
}
|
||||
|
||||
if (!constants.empty()) {
|
||||
if (!constants.is_empty()) {
|
||||
class_dict["constants"] = constants;
|
||||
}
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!signals.empty()) {
|
||||
if (!signals.is_empty()) {
|
||||
class_dict["signals"] = signals;
|
||||
}
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
|||
property_dict["getter"] = psg->getter;
|
||||
}
|
||||
|
||||
if (!properties.empty()) {
|
||||
if (!properties.is_empty()) {
|
||||
class_dict["property_setget"] = properties;
|
||||
}
|
||||
}
|
||||
|
@ -233,7 +233,7 @@ void class_db_api_to_json(const String &p_output_file, ClassDB::APIType p_api) {
|
|||
property_dict["usage"] = F->get().usage;
|
||||
}
|
||||
|
||||
if (!property_list.empty()) {
|
||||
if (!property_list.is_empty()) {
|
||||
class_dict["property_list"] = property_list;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue