aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/references.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-07-29 18:08:57 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-07-29 18:08:57 +0200
commit0c94c176446bd9e9cb8c7e16fb7c6d88bb4e9a20 (patch)
tree6a0e75f2c467c0a37cb739380979632d01c532c3 /src/libstore/references.cc
parent1308c8404e19aacc6458b3813d445857620a60a8 (diff)
parentf63839bfa402f73e001a5ee412c3f6a6b95d1a38 (diff)
Merge remote-tracking branch 'origin/master' into markdown
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);
}