forked from qt-creator/qt-creator
CmakeProjectManager: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Iabe3a621efa56282bf1511f540c98fdf5d8da270 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -432,7 +432,7 @@ static QStringList parseDefinition(const QString &definition)
|
||||
bool ignoreWord = false;
|
||||
QVector<QChar> braceStack;
|
||||
|
||||
foreach (const QChar &c, definition) {
|
||||
for (const QChar &c : definition) {
|
||||
if (c == '[' || c == '<' || c == '(') {
|
||||
braceStack.append(c);
|
||||
ignoreWord = false;
|
||||
@@ -498,7 +498,7 @@ QStringList CMakeTool::parseVariableOutput(const QString &output)
|
||||
{
|
||||
const QStringList variableList = output.split('\n');
|
||||
QStringList result;
|
||||
foreach (const QString &v, variableList) {
|
||||
for (const QString &v : variableList) {
|
||||
if (v.startsWith("CMAKE_COMPILER_IS_GNU<LANG>")) { // This key takes a compiler name :-/
|
||||
result << "CMAKE_COMPILER_IS_GNUCC"
|
||||
<< "CMAKE_COMPILER_IS_GNUCXX";
|
||||
|
||||
Reference in New Issue
Block a user