From 01cc7a996babc9173a393bf3dae080dc14a277c9 Mon Sep 17 00:00:00 2001 From: qarmin Date: Wed, 10 Jul 2019 11:54:12 +0200 Subject: Use reference to constant in functions --- editor/filesystem_dock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor/filesystem_dock.h') diff --git a/editor/filesystem_dock.h b/editor/filesystem_dock.h index 76f92665db..6de370ad29 100644 --- a/editor/filesystem_dock.h +++ b/editor/filesystem_dock.h @@ -175,7 +175,7 @@ private: Ref _get_tree_item_icon(EditorFileSystemDirectory *p_dir, int p_idx); bool _create_tree(TreeItem *p_parent, EditorFileSystemDirectory *p_dir, Vector &uncollapsed_paths, bool p_select_in_favorites); Vector _compute_uncollapsed_paths(); - void _update_tree(const Vector p_uncollapsed_paths = Vector(), bool p_uncollapse_root = false, bool p_select_in_favorites = false); + void _update_tree(const Vector &p_uncollapsed_paths = Vector(), bool p_uncollapse_root = false, bool p_select_in_favorites = false); void _navigate_to_path(const String &p_path, bool p_select_in_favorites = false); void _file_list_gui_input(Ref p_event); @@ -188,7 +188,7 @@ private: void _tree_toggle_collapsed(); - void _select_file(const String p_path, bool p_select_in_favorites = false); + void _select_file(const String &p_path, bool p_select_in_favorites = false); void _tree_activate_file(); void _file_list_activate_file(int p_idx); void _file_multi_selected(int p_index, bool p_selected); @@ -221,7 +221,7 @@ private: void _tree_rmb_option(int p_option); void _file_list_rmb_option(int p_option); - void _file_option(int p_option, const Vector p_selected); + void _file_option(int p_option, const Vector &p_selected); void _fw_history(); void _bw_history(); -- cgit v1.2.3