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

@ -3816,7 +3816,7 @@ void EditorNode::_update_addon_config() {
enabled_addons.push_back(E.key);
}
if (enabled_addons.size() == 0) {
if (enabled_addons.is_empty()) {
ProjectSettings::get_singleton()->set("editor_plugins/enabled", Variant());
} else {
enabled_addons.sort();
@ -6342,7 +6342,7 @@ void EditorNode::preload_reimporting_with_path_in_edited_scenes(const List<Strin
}
void EditorNode::reload_instances_with_path_in_edited_scenes() {
if (scenes_modification_table.size() == 0) {
if (scenes_modification_table.is_empty()) {
return;
}
EditorProgress progress("reloading_scene", TTR("Scenes reloading"), editor_data.get_edited_scene_count());