mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 21:21:10 +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
|
|
@ -81,14 +81,14 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
|
|||
Vector<String> str_values = property_value;
|
||||
for (int k = 0; k < str_values.size(); k++) {
|
||||
String desc = str_values[k].get_slice(";", 1).strip_edges();
|
||||
if (!desc.empty()) {
|
||||
if (!desc.is_empty()) {
|
||||
parsed_strings.push_back(desc);
|
||||
}
|
||||
}
|
||||
} else if (property_value.get_type() == Variant::STRING) {
|
||||
String str_value = String(property_value);
|
||||
// Prevent reading text containing only spaces.
|
||||
if (!str_value.strip_edges().empty()) {
|
||||
if (!str_value.strip_edges().is_empty()) {
|
||||
parsed_strings.push_back(str_value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue