mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-19 14:51:13 -03:00
[clang-tidy] pass-by-value
Found with modernize-pass-by-value Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Fabian Homborg
parent
b266370428
commit
dd704ae30c
@@ -631,9 +631,9 @@ class wildcard_expander_t {
|
||||
}
|
||||
|
||||
public:
|
||||
wildcard_expander_t(wcstring wd, expand_flags_t f, const cancel_checker_t &cancel_checker,
|
||||
wildcard_expander_t(wcstring wd, expand_flags_t f, cancel_checker_t cancel_checker,
|
||||
completion_list_t *r)
|
||||
: cancel_checker(cancel_checker),
|
||||
: cancel_checker(std::move(cancel_checker)),
|
||||
working_directory(std::move(wd)),
|
||||
flags(f),
|
||||
resolved_completions(r) {
|
||||
|
||||
Reference in New Issue
Block a user