forked from qt-creator/qt-creator
QMakeProjectManager: Replace foreach with ranged for loop
Change-Id: Ibdb526ac3e0cfbb0568e17c21a1b73f7749a84ed Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user