mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Replace size() == 0 with is_empty().
This commit is contained in:
parent
c7ea8614d7
commit
4f4031a675
147 changed files with 300 additions and 300 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue