1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Replace size() == 0 with is_empty().

This commit is contained in:
Yufeng Ying
2025-03-20 00:07:31 +08:00
parent c7ea8614d7
commit 4f4031a675
147 changed files with 300 additions and 300 deletions

View File

@@ -7979,7 +7979,7 @@ Control *VisualShaderNodePluginDefault::create_editor(const Ref<Resource> &p_par
}
Vector<StringName> properties = p_node->get_editable_properties();
if (properties.size() == 0) {
if (properties.is_empty()) {
return nullptr;
}
@@ -7996,7 +7996,7 @@ Control *VisualShaderNodePluginDefault::create_editor(const Ref<Resource> &p_par
}
}
if (pinfo.size() == 0) {
if (pinfo.is_empty()) {
return nullptr;
}