TextEditor: Remove foreach / Q_FOREACH usage

Task-number: QTCREATORBUG-27464
Change-Id: Ie9594bf661dbeecf22589c1580648252f0bfb7fb
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Artem Sokolovskii
2022-05-17 10:31:15 +02:00
parent a2797ec80e
commit 66f132dd9b
14 changed files with 65 additions and 45 deletions

View File

@@ -273,7 +273,7 @@ bool TabSettings::guessSpacesForTabs(const QTextBlock &_block) const
if (currentBlocks.at(1).isValid())
currentBlocks[1] = currentBlocks.at(1).next();
bool done = true;
foreach (const QTextBlock &block, currentBlocks) {
for (const QTextBlock &block : qAsConst(currentBlocks)) {
if (block.isValid())
done = false;
if (!block.isValid() || block.length() == 0)