1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +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

@@ -136,7 +136,7 @@ void ThemeItemImportTree::_update_items_tree() {
filtered_names.push_back(F);
}
if (filtered_names.size() == 0) {
if (filtered_names.is_empty()) {
continue;
}
@@ -734,7 +734,7 @@ void ThemeItemImportTree::_deselect_all_data_type_pressed(int p_data_type) {
}
void ThemeItemImportTree::_import_selected() {
if (selected_items.size() == 0) {
if (selected_items.is_empty()) {
EditorNode::get_singleton()->show_accept(TTR("Nothing was selected for the import."), TTR("OK"));
return;
}