1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 04:21:16 +02:00

Pass more values by reference

Rather than copying them around everywhere

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
This commit is contained in:
Théophane Hufschmitt 2021-06-21 16:37:45 +02:00 committed by regnat
parent dcabb46124
commit c13d7d0b97
3 changed files with 6 additions and 6 deletions

View file

@ -255,8 +255,8 @@ StorePaths Store::topoSortPaths(const StorePathSet & paths)
}
std::map<DrvOutput, StorePath> drvOutputReferences(
const std::set<Realisation> inputRealisations,
const StorePathSet pathReferences)
const std::set<Realisation> & inputRealisations,
const StorePathSet & pathReferences)
{
std::map<DrvOutput, StorePath> res;