mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Remove some designated initializers
With the switch to C++20, the rules became more strict, and we can no longer initialize base classes. Make them comments instead. (BTW https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2287r1.html this offers some new syntax for this use-case. Hopefully this will be adopted and we can eventually use it.)
This commit is contained in:
parent
59d3175649
commit
ee9eb83a84
16 changed files with 21 additions and 21 deletions
|
@ -234,7 +234,7 @@ std::pair<StorePath, Hash> Store::computeStorePathForPath(std::string_view name,
|
|||
.method = method,
|
||||
.hash = h,
|
||||
},
|
||||
.references = {},
|
||||
/* .references = */ {},
|
||||
};
|
||||
return std::make_pair(makeFixedOutputPath(name, caInfo), h);
|
||||
}
|
||||
|
@ -443,7 +443,7 @@ ValidPathInfo Store::addToStoreSlow(std::string_view name, const Path & srcPath,
|
|||
.method = method,
|
||||
.hash = hash,
|
||||
},
|
||||
.references = {},
|
||||
/* .references = */ {},
|
||||
},
|
||||
narHash,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue