You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Rename empty() to is_empty()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user