diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-28 14:22:24 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-28 14:22:24 -0400 |
commit | c318d398f37714c98f16b83d3afcafa856f91266 (patch) | |
tree | 35eb840a8c09e4bd83b9837bbb0b5f610e2b29b6 /src/libstore/references.cc | |
parent | 7ef1e3cd1429f336c568ccf4d59cd89cde68efbd (diff) | |
parent | 7cf978440c62b6677b068f10ee7ef22a09e7b1b8 (diff) |
Merge branch 'misc-ca' of github.com:obsidiansystems/nix into new-interface-for-path-pathOpt
Diffstat (limited to 'src/libstore/references.cc')
-rw-r--r-- | src/libstore/references.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/references.cc b/src/libstore/references.cc index 968e2e425..62a3cda61 100644 --- a/src/libstore/references.cc +++ b/src/libstore/references.cc @@ -76,8 +76,8 @@ void RefScanSink::operator () (const unsigned char * data, size_t len) } -PathSet scanForReferences(const string & path, - const PathSet & refs, HashResult & hash) +std::pair<PathSet, HashResult> scanForReferences(const string & path, + const PathSet & refs) { RefScanSink refsSink; HashSink hashSink { htSHA256 }; @@ -111,9 +111,9 @@ PathSet scanForReferences(const string & path, found.insert(j->second); } - hash = hashSink.finish(); + auto hash = hashSink.finish(); - return found; + return std::pair<PathSet, HashResult>(found, hash); } |