Commit 660c4ced authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QbsProjectManager: Fix collecting unreferenced build system files



We cannot use std::set_difference on a QSet, because those are not
sorted.

Change-Id: I6238a2bd06bcc6e5dba64572f0c3b0caaa57a7eb
Reviewed-by: Jake Petroules's avatarJake Petroules <jake.petroules@qt.io>
parent 4b39baa8
...@@ -178,10 +178,10 @@ QStringList unreferencedBuildSystemFiles(const qbs::Project &p) ...@@ -178,10 +178,10 @@ QStringList unreferencedBuildSystemFiles(const qbs::Project &p)
return result; return result;
const std::set<QString> &available = p.buildSystemFiles(); const std::set<QString> &available = p.buildSystemFiles();
const QSet<QString> &referenced = referencedBuildSystemFiles(p.projectData()); QList<QString> referenced = referencedBuildSystemFiles(p.projectData()).toList();
Utils::sort(referenced);
std::set_difference(available.begin(), available.end(), referenced.begin(), referenced.end(), std::set_difference(available.begin(), available.end(), referenced.begin(), referenced.end(),
std::back_inserter(result)); std::back_inserter(result));
return result; return result;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment