diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2023-02-01 15:41:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 15:41:04 +0100 |
commit | 14b0b9ea5a7fd49f9508e211ac3e5552b70cd2fe (patch) | |
tree | 59630e3dfb740457be3d625c3da30e3e4faa2684 /src/libstore/globals.cc | |
parent | 0079d2943702a7a7fbdd88c0f9a5ad677c334aa8 (diff) | |
parent | 4563e803633d44ec57dfc4515f0c42c8855c018b (diff) |
Merge pull request #7203 from graham33/feature/cpp20
Proposal: Use C++20
Diffstat (limited to 'src/libstore/globals.cc')
-rw-r--r-- | src/libstore/globals.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/globals.cc b/src/libstore/globals.cc index 130c5b670..8e33a3dec 100644 --- a/src/libstore/globals.cc +++ b/src/libstore/globals.cc @@ -222,19 +222,19 @@ template<> void BaseSetting<SandboxMode>::convertToArg(Args & args, const std::s .longName = name, .description = "Enable sandboxing.", .category = category, - .handler = {[=]() { override(smEnabled); }} + .handler = {[this]() { override(smEnabled); }} }); args.addFlag({ .longName = "no-" + name, .description = "Disable sandboxing.", .category = category, - .handler = {[=]() { override(smDisabled); }} + .handler = {[this]() { override(smDisabled); }} }); args.addFlag({ .longName = "relaxed-" + name, .description = "Enable sandboxing, but allow builds to disable it.", .category = category, - .handler = {[=]() { override(smRelaxed); }} + .handler = {[this]() { override(smRelaxed); }} }); } |