aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-03 10:02:11 +0100
committerGitHub <noreply@github.com>2022-03-03 10:02:11 +0100
commita7c835e9cb95ed573924f6f4a0ab0083058d6000 (patch)
treec595eb89c4ad9cbadf1d3cfb5d3e2821d7c6a276
parentb55d79728ccbd2581fa3aa7b2ec7f498aa2285d6 (diff)
Use C++11-style initializer
Co-authored-by: John Ericson <git@JohnEricson.me>
-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 24f2d2bf3..40c3c5d65 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -953,7 +953,7 @@ static void queryJSON(Globals & globals, std::vector<DrvInfo> & elems, bool prin
static void opQuery(Globals & globals, Strings opFlags, Strings opArgs)
{
- auto & store(*globals.state->store);
+ auto & store { *globals.state->store };
Strings remaining;
std::string attrPath;