diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-27 17:44:30 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-07-27 17:47:40 +0000 |
commit | 7cf978440c62b6677b068f10ee7ef22a09e7b1b8 (patch) | |
tree | d87cb0613cf9210c467e39136c6b3cec25736fb4 /src/libstore/references.cc | |
parent | 387699fe7ff3fafca879843327843845fd8229d0 (diff) | |
parent | e6115ca00453d0e6ff653634133b547f7b3f552d (diff) |
Merge branch 'ca-derivation-data-types' of github.com:obsidiansystems/nix into misc-ca
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); } |