forked from qt-creator/qt-creator
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user