summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/qml/qmlengineutils.cpp
diff options
context:
space:
mode:
authorArtem Sokolovskii <artem.sokolovskii@qt.io>2022-04-29 12:43:37 +0200
committerArtem Sokolovskii <artem.sokolovskii@qt.io>2022-05-03 09:32:04 +0000
commit27fddc8dc71b77144a8f53fb4837fb3229f937bd (patch)
treedcf42966d8babc9a21bb7fb4145ca14a85f5c605 /src/plugins/debugger/qml/qmlengineutils.cpp
parentfbefd45b949791d78d7d4ac9ff0869b052f7546d (diff)
downloadqt-creator-27fddc8dc71b77144a8f53fb4837fb3229f937bd.tar.gz
Debugger: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Ib49afb4d0283aeeffead6b31e1a3d0bcb9a7ae14 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/debugger/qml/qmlengineutils.cpp')
-rw-r--r--src/plugins/debugger/qml/qmlengineutils.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/debugger/qml/qmlengineutils.cpp b/src/plugins/debugger/qml/qmlengineutils.cpp
index 5b5bef2a86..3fe5c4c8dd 100644
--- a/src/plugins/debugger/qml/qmlengineutils.cpp
+++ b/src/plugins/debugger/qml/qmlengineutils.cpp
@@ -237,7 +237,8 @@ void clearExceptionSelection()
{
QList<QTextEdit::ExtraSelection> selections;
- foreach (IEditor *editor, DocumentModel::editorsForOpenedDocuments()) {
+ const QList<IEditor *> editors = DocumentModel::editorsForOpenedDocuments();
+ for (IEditor *editor : editors) {
if (auto ed = TextEditorWidget::fromEditor(editor))
ed->setExtraSelections(TextEditorWidget::DebuggerExceptionSelection, selections);
}