1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 15:02:42 +01:00

addToStore, addToStoreFromDump: refactor: pass refs by const reference

Co-Authored-By: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Alexander Bantyev 2021-11-09 12:24:49 +03:00
parent 9d4dcff37a
commit 0b005bc9d6
No known key found for this signature in database
GPG key ID: E081FF12ADCB4AD5
11 changed files with 15 additions and 15 deletions

View file

@ -1302,7 +1302,7 @@ void LocalStore::addToStore(const ValidPathInfo & info, Source & source,
StorePath LocalStore::addToStoreFromDump(Source & source0, const string & name,
FileIngestionMethod method, HashType hashAlgo, RepairFlag repair, StorePathSet references)
FileIngestionMethod method, HashType hashAlgo, RepairFlag repair, const StorePathSet & references)
{
/* For computing the store path. */
auto hashSink = std::make_unique<HashSink>(hashAlgo);