mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 14:02:42 +01:00
Remove StorePath::clone() and related functions
This commit is contained in:
parent
df4da4f5da
commit
29542865ce
34 changed files with 201 additions and 304 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue