diff options
author | Théophane Hufschmitt <regnat@users.noreply.github.com> | 2021-06-21 16:37:45 +0200 |
---|---|---|
committer | regnat <rg@regnat.ovh> | 2021-06-23 08:16:34 +0200 |
commit | c13d7d0b9770741cc7093dc71ec8fc7978171f18 (patch) | |
tree | 90db9ae2a03693e60d84f338329a5b1e71dc5122 /src/libstore/realisation.hh | |
parent | dcabb461242e5c38e0a2780dc5869b91c13241d6 (diff) |
Pass more values by reference
Rather than copying them around everywhere
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Diffstat (limited to 'src/libstore/realisation.hh')
-rw-r--r-- | src/libstore/realisation.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/realisation.hh b/src/libstore/realisation.hh index 8cda5a752..7fdb65acd 100644 --- a/src/libstore/realisation.hh +++ b/src/libstore/realisation.hh @@ -44,8 +44,8 @@ struct Realisation { bool checkSignature(const PublicKeys & publicKeys, const std::string & sig) const; size_t checkSignatures(const PublicKeys & publicKeys) const; - static std::set<Realisation> closure(Store &, std::set<Realisation>); - static void closure(Store &, std::set<Realisation>, std::set<Realisation>& res); + static std::set<Realisation> closure(Store &, const std::set<Realisation> &); + static void closure(Store &, const std::set<Realisation> &, std::set<Realisation>& res); StorePath getPath() const { return outPath; } |