diff options
Diffstat (limited to 'third_party/nix/src/libutil/config.cc')
-rw-r--r-- | third_party/nix/src/libutil/config.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/nix/src/libutil/config.cc b/third_party/nix/src/libutil/config.cc index ef47c167ed49..828ee1811bdb 100644 --- a/third_party/nix/src/libutil/config.cc +++ b/third_party/nix/src/libutil/config.cc @@ -246,12 +246,12 @@ void BaseSetting<bool>::convertToArg(Args& args, const std::string& category) { args.mkFlag() .longName(name) .description(description) - .handler([=](std::vector<std::string> ss) { override(true); }) + .handler([=](const std::vector<std::string>& ss) { override(true); }) .category(category); args.mkFlag() .longName("no-" + name) .description(description) - .handler([=](std::vector<std::string> ss) { override(false); }) + .handler([=](const std::vector<std::string>& ss) { override(false); }) .category(category); } |