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

View File

@@ -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++);