summaryrefslogtreecommitdiffstats
path: root/editor/editor_command_palette.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor_command_palette.h')
-rw-r--r--editor/editor_command_palette.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_command_palette.h b/editor/editor_command_palette.h
index b34c4ddf97..d2f25f6ec5 100644
--- a/editor/editor_command_palette.h
+++ b/editor/editor_command_palette.h
@@ -97,7 +97,7 @@ public:
void open_popup();
void get_actions_list(List<String> *p_list) const;
void add_command(String p_command_name, String p_key_name, Callable p_action, Vector<Variant> arguments, String p_shortcut_text = "None");
- void execute_command(String &p_command_name);
+ void execute_command(const String &p_command_name);
void register_shortcuts_as_command();
Ref<Shortcut> add_shortcut_command(const String &p_command, const String &p_key, Ref<Shortcut> p_shortcut);
void remove_command(String p_key_name);