forked from qt-creator/qt-creator
		
	CPlusPlus: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Idbcedd9f9a2e148cb18e53c9dc0b82b52b372d64 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
		| @@ -1824,7 +1824,8 @@ void Preprocessor::handleDefineDirective(PPToken *tk) | ||||
|         if (macro.isFunctionLike()) { | ||||
|             macroId += '('; | ||||
|             bool fst = true; | ||||
|             foreach (const QByteArray &formal, macro.formals()) { | ||||
|             const QVector<QByteArray> formals = macro.formals(); | ||||
|             for (const QByteArray &formal : formals) { | ||||
|                 if (! fst) | ||||
|                     macroId += ", "; | ||||
|                 fst = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user