mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 22:21:18 +00:00
Rename empty() to is_empty()
This commit is contained in:
parent
886571e0fc
commit
5b937d493f
289 changed files with 898 additions and 898 deletions
|
|
@ -702,7 +702,7 @@ void EditorAssetLibrary::_image_update(bool use_cache, bool final, const PackedB
|
|||
}
|
||||
}
|
||||
|
||||
if (!image->empty()) {
|
||||
if (!image->is_empty()) {
|
||||
switch (image_queue[p_queue_id].image_type) {
|
||||
case IMAGE_QUEUE_ICON:
|
||||
|
||||
|
|
@ -1151,7 +1151,7 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
|||
asset_bottom_page = _make_pages(page, pages, page_len, total_items, result.size());
|
||||
library_vb->add_child(asset_bottom_page);
|
||||
|
||||
if (result.empty()) {
|
||||
if (result.is_empty()) {
|
||||
if (filter->get_text() != String()) {
|
||||
library_error->set_text(
|
||||
vformat(TTR("No results for \"%s\"."), filter->get_text()));
|
||||
|
|
@ -1188,7 +1188,7 @@ void EditorAssetLibrary::_http_request_completed(int p_status, int p_code, const
|
|||
}
|
||||
}
|
||||
|
||||
if (!result.empty()) {
|
||||
if (!result.is_empty()) {
|
||||
library_scroll->set_v_scroll(0);
|
||||
}
|
||||
} break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue