You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +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:
@@ -164,7 +164,7 @@ void EditorCommandPalette::_sbox_input(const Ref<InputEvent> &p_ie) {
|
||||
void EditorCommandPalette::_confirmed() {
|
||||
TreeItem *selected_option = search_options->get_selected();
|
||||
String command_key = selected_option != nullptr ? selected_option->get_metadata(0) : "";
|
||||
if (command_key != "") {
|
||||
if (!command_key.is_empty()) {
|
||||
hide();
|
||||
execute_command(command_key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user