aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/references.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-27 17:41:43 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-27 17:41:43 +0000
commite6115ca00453d0e6ff653634133b547f7b3f552d (patch)
tree8d260a671f47f31ce5863ead921015d4005614d7 /src/libstore/references.cc
parentac89462b7412f4d72f452552dffe36202bd528e9 (diff)
parent86805a2c0a25f5ceefac0d64e64ba57ace73b7f5 (diff)
Merge remote-tracking branch 'upstream/master' into ca-derivation-data-types
Diffstat (limited to 'src/libstore/references.cc')
-rw-r--r--src/libstore/references.cc8
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);
}