aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-06-10 10:28:37 +0200
committerGitHub <noreply@github.com>2022-06-10 10:28:37 +0200
commit17e54a602ef2a767ae3fe5d8789bc4658f439c37 (patch)
tree8059a297dee0b229acd9bcf70b429aac4faeefe1
parent1bc17ae6174b6307d2e1968583b527379c4a7019 (diff)
parent7868405d58f39877a267a3f243775dd0fe92e22d (diff)
Merge pull request #6637 from sidkshatriya/small-move-optimization-2
nix-env: A small std::move() optimization
-rw-r--r--src/nix-env/nix-env.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index c412bb814..a69d3700d 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -1485,7 +1485,7 @@ static int main_nix_env(int argc, char * * argv)
if (globals.profile == "")
globals.profile = getDefaultProfile();
- op(globals, opFlags, opArgs);
+ op(globals, std::move(opFlags), std::move(opArgs));
globals.state->printStats();