1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +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

@@ -371,7 +371,7 @@ void ScriptEditorDebugger::_msg_debug_exit(uint64_t p_thread_id, const Array &p_
threads_debugged.erase(p_thread_id);
if (p_thread_id == debugging_thread_id) {
_clear_execution();
if (threads_debugged.size() == 0) {
if (threads_debugged.is_empty()) {
debugging_thread_id = Thread::UNASSIGNED_ID;
} else {
// Find next thread to debug.
@@ -1667,7 +1667,7 @@ void ScriptEditorDebugger::_error_selected() {
}
Array meta = selected->get_metadata(0);
if (meta.size() == 0) {
if (meta.is_empty()) {
return;
}