aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/realisation.hh
diff options
context:
space:
mode:
authorThéophane Hufschmitt <regnat@users.noreply.github.com>2021-06-21 16:37:45 +0200
committerregnat <rg@regnat.ovh>2021-06-23 08:16:34 +0200
commitc13d7d0b9770741cc7093dc71ec8fc7978171f18 (patch)
tree90db9ae2a03693e60d84f338329a5b1e71dc5122 /src/libstore/realisation.hh
parentdcabb461242e5c38e0a2780dc5869b91c13241d6 (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.hh4
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; }