QMakeProjectManager: Replace foreach with ranged for loop

Change-Id: Ibdb526ac3e0cfbb0568e17c21a1b73f7749a84ed
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-30 13:13:35 +02:00
parent 0d13cfe652
commit 8741ce6afc
10 changed files with 92 additions and 87 deletions

View File

@@ -271,13 +271,12 @@ void QmakeBuildConfiguration::updateProblemLabel()
allGood = false;
if (allGood) {
Tasks issues;
issues = version->reportIssues(proFileName, buildDirectory().toString());
Tasks issues = version->reportIssues(proFileName, buildDirectory().toString());
Utils::sort(issues);
if (!issues.isEmpty()) {
QString text = QLatin1String("<nobr>");
foreach (const ProjectExplorer::Task &task, issues) {
for (const ProjectExplorer::Task &task : qAsConst(issues)) {
QString type;
switch (task.type) {
case ProjectExplorer::Task::Error: