You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Replace String comparisons with "", String() to is_empty()
Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
This commit is contained in:
@@ -79,7 +79,7 @@ void EditorQuickOpen::_build_search_cache(EditorFileSystemDirectory *p_efsd) {
|
||||
|
||||
void EditorQuickOpen::_update_search() {
|
||||
const String search_text = search_box->get_text();
|
||||
const bool empty_search = search_text == "";
|
||||
const bool empty_search = search_text.is_empty();
|
||||
|
||||
// Filter possible candidates.
|
||||
Vector<Entry> entries;
|
||||
|
||||
Reference in New Issue
Block a user