From c13d7d0b9770741cc7093dc71ec8fc7978171f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophane=20Hufschmitt?= Date: Mon, 21 Jun 2021 16:37:45 +0200 Subject: Pass more values by reference Rather than copying them around everywhere Co-authored-by: Eelco Dolstra --- src/libstore/realisation.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/realisation.hh') 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 closure(Store &, std::set); - static void closure(Store &, std::set, std::set& res); + static std::set closure(Store &, const std::set &); + static void closure(Store &, const std::set &, std::set& res); StorePath getPath() const { return outPath; } -- cgit v1.2.3