diff options
author | qarmin <mikrutrafal54@gmail.com> | 2019-07-10 11:54:12 +0200 |
---|---|---|
committer | qarmin <mikrutrafal54@gmail.com> | 2019-07-10 11:54:12 +0200 |
commit | 01cc7a996babc9173a393bf3dae080dc14a277c9 (patch) | |
tree | cc57520aebe056553aeb8999ef90f9c71cace392 /editor/filesystem_dock.cpp | |
parent | 3bfffcc568d87342e867f95c35a4a19e09072189 (diff) | |
download | redot-engine-01cc7a996babc9173a393bf3dae080dc14a277c9.tar.gz |
Use reference to constant in functions
Diffstat (limited to 'editor/filesystem_dock.cpp')
-rw-r--r-- | editor/filesystem_dock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index b74350c98b..947d96f897 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -163,7 +163,7 @@ Vector<String> FileSystemDock::_compute_uncollapsed_paths() { return uncollapsed_paths; } -void FileSystemDock::_update_tree(const Vector<String> p_uncollapsed_paths, bool p_uncollapse_root, bool p_select_in_favorites) { +void FileSystemDock::_update_tree(const Vector<String> &p_uncollapsed_paths, bool p_uncollapse_root, bool p_select_in_favorites) { // Recreate the tree tree->clear(); @@ -812,7 +812,7 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) { } } -void FileSystemDock::_select_file(const String p_path, bool p_select_in_favorites) { +void FileSystemDock::_select_file(const String &p_path, bool p_select_in_favorites) { String fpath = p_path; if (fpath.ends_with("/")) { if (fpath != "res://") { @@ -1502,7 +1502,7 @@ void FileSystemDock::_file_list_rmb_option(int p_option) { _file_option(p_option, selected); } -void FileSystemDock::_file_option(int p_option, const Vector<String> p_selected) { +void FileSystemDock::_file_option(int p_option, const Vector<String> &p_selected) { // The first one should be the active item switch (p_option) { |