diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-09-27 10:53:09 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-09-27 11:12:06 +0200 |
commit | a15e65eef0443a4d41b1a9e9b1504234dc5f5947 (patch) | |
tree | c704bbabd0f1548475cec1efcfd6b4ae158a9a54 /src/libcmd/command.cc | |
parent | 283e7da470796e9ec24782134cbfcded93f3612b (diff) |
run(): Move
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r-- | src/libcmd/command.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc index 2daf43aa7..2b9902677 100644 --- a/src/libcmd/command.cc +++ b/src/libcmd/command.cc @@ -138,7 +138,7 @@ StorePathsCommand::StorePathsCommand(bool recursive) { } -void StorePathsCommand::run(ref<Store> store, BuiltPaths paths) +void StorePathsCommand::run(ref<Store> store, BuiltPaths && paths) { StorePaths storePaths; for (auto& builtPath : paths) @@ -148,7 +148,7 @@ void StorePathsCommand::run(ref<Store> store, BuiltPaths paths) run(store, std::move(storePaths)); } -void StorePathCommand::run(ref<Store> store, std::vector<StorePath> storePaths) +void StorePathCommand::run(ref<Store> store, std::vector<StorePath> && storePaths) { if (storePaths.size() != 1) throw UsageError("this command requires exactly one store path"); |