use std::move in a couple spots where things were unsed after copy

This commit is contained in:
Aaron Gyes
2019-04-04 14:16:34 -07:00
parent 09e8f0fd7c
commit b064eaa571
2 changed files with 5 additions and 5 deletions

View File

@@ -185,7 +185,7 @@ maybe_t<wcstring> path_get_cdpath(const wcstring &dir, const wcstring &wd,
expand_tilde(next_path, env_vars);
if (next_path.empty()) continue;
wcstring whole_path = next_path;
wcstring whole_path = std::move(next_path);
append_path_component(whole_path, dir);
paths.push_back(whole_path);
}