mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
treewide: Use PathSet alias consistently instead of std::set<Path>
This commit is contained in:
parent
d8c97d8073
commit
55815ec225
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ void buildProfile(const Path & out, Packages && pkgs)
|
|||
{
|
||||
State state;
|
||||
|
||||
std::set<Path> done, postponed;
|
||||
PathSet done, postponed;
|
||||
|
||||
auto addPkg = [&](const Path & pkgDir, int priority) {
|
||||
if (!done.insert(pkgDir).second) return;
|
||||
|
@ -157,7 +157,7 @@ void buildProfile(const Path & out, Packages && pkgs)
|
|||
*/
|
||||
auto priorityCounter = 1000;
|
||||
while (!postponed.empty()) {
|
||||
std::set<Path> pkgDirs;
|
||||
PathSet pkgDirs;
|
||||
postponed.swap(pkgDirs);
|
||||
for (const auto & pkgDir : pkgDirs)
|
||||
addPkg(pkgDir, priorityCounter++);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue