Fix pessimizing move warnings on Clang

This commit is contained in:
Cameron Gutman
2023-05-11 00:07:34 -05:00
parent 8db0ad0cc6
commit 2571682886
2 changed files with 5 additions and 8 deletions

View File

@@ -832,10 +832,7 @@ namespace config {
auto undo_cmd = prep_cmd.get_optional<std::string>("undo"s);
auto elevated = prep_cmd.get_optional<bool>("elevated"s);
input.emplace_back(
std::move(do_cmd.value_or("")),
std::move(undo_cmd.value_or("")),
std::move(elevated.value_or(false)));
input.emplace_back(do_cmd.value_or(""), undo_cmd.value_or(""), elevated.value_or(false));
}
}