1
0
Fork 0
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:
Sergei Zimmerman 2025-05-02 17:40:31 +00:00
parent d8c97d8073
commit 55815ec225
No known key found for this signature in database
GPG key ID: A9B0B557CA632325

View file

@ -123,7 +123,7 @@ void buildProfile(const Path & out, Packages && pkgs)
{ {
State state; State state;
std::set<Path> done, postponed; PathSet done, postponed;
auto addPkg = [&](const Path & pkgDir, int priority) { auto addPkg = [&](const Path & pkgDir, int priority) {
if (!done.insert(pkgDir).second) return; if (!done.insert(pkgDir).second) return;
@ -157,7 +157,7 @@ void buildProfile(const Path & out, Packages && pkgs)
*/ */
auto priorityCounter = 1000; auto priorityCounter = 1000;
while (!postponed.empty()) { while (!postponed.empty()) {
std::set<Path> pkgDirs; PathSet pkgDirs;
postponed.swap(pkgDirs); postponed.swap(pkgDirs);
for (const auto & pkgDir : pkgDirs) for (const auto & pkgDir : pkgDirs)
addPkg(pkgDir, priorityCounter++); addPkg(pkgDir, priorityCounter++);