forked from qt-creator/qt-creator
CppEditor: Remove foreach / Q_FOREACH usage part 3
Task-number: QTCREATORBUG-27464 Change-Id: Icbe620a83b6c2cf6b6166b76d01ca5f3c65ea87a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -92,7 +92,7 @@ QString DoxygenGenerator::generate(QTextCursor cursor,
|
||||
while (block.isValid()) {
|
||||
const QString &text = block.text();
|
||||
const Tokens &tks = lexer(text);
|
||||
foreach (const Token &tk, tks) {
|
||||
for (const Token &tk : tks) {
|
||||
if (tk.is(T_SEMICOLON) || tk.is(T_LBRACE)) {
|
||||
// No need to continue beyond this, we might already have something meaningful.
|
||||
cursor.setPosition(block.position() + tk.utf16charsEnd(), QTextCursor::KeepAnchor);
|
||||
|
||||
Reference in New Issue
Block a user