aboutsummaryrefslogtreecommitdiff
path: root/src/nix-store/graphml.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-06-16 22:20:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-06-16 22:20:18 +0200
commit29542865cee37ab22efe1bd142900b69f6c59f0d (patch)
tree0115a7d831276f14144aeaeae430e680e5ab0297 /src/nix-store/graphml.cc
parentdf4da4f5da1e390ac1eef5bfd455a8cf85dfe52c (diff)
Remove StorePath::clone() and related functions
Diffstat (limited to 'src/nix-store/graphml.cc')
-rw-r--r--src/nix-store/graphml.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix-store/graphml.cc b/src/nix-store/graphml.cc
index 347708851..8ca5c9c8d 100644
--- a/src/nix-store/graphml.cc
+++ b/src/nix-store/graphml.cc
@@ -65,7 +65,7 @@ void printGraphML(ref<Store> store, StorePathSet && roots)
while (!workList.empty()) {
auto path = std::move(workList.extract(workList.begin()).value());
- ret = doneSet.insert(path.clone());
+ ret = doneSet.insert(path);
if (ret.second == false) continue;
auto info = store->queryPathInfo(path);
@@ -73,7 +73,7 @@ void printGraphML(ref<Store> store, StorePathSet && roots)
for (auto & p : info->references) {
if (p != path) {
- workList.insert(p.clone());
+ workList.insert(p);
cout << makeEdge(path.to_string(), p.to_string());
}
}