diff options
author | Artem Sokolovskii <artem.sokolovskii@qt.io> | 2022-12-20 10:58:39 +0100 |
---|---|---|
committer | Artem Sokolovskii <artem.sokolovskii@qt.io> | 2022-12-20 17:27:01 +0000 |
commit | 3f340616d5ee75f426366f6e5bdcd3e85344dab4 (patch) | |
tree | 2f6a7cd1007d8e72b278ff5c662d9a06a9b768d2 /src/plugins/glsleditor/glslindenter.cpp | |
parent | 2b97f69796f05d4d9d4b6745c4fbdc5d928aa001 (diff) |
plugins: Remove foreach usage
Change-Id: Idf60caed3b5f4ec4c6e990a9e3188487bcc824f8
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/plugins/glsleditor/glslindenter.cpp')
-rw-r--r-- | src/plugins/glsleditor/glslindenter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/glsleditor/glslindenter.cpp b/src/plugins/glsleditor/glslindenter.cpp index 10caa1e55d..a7135515ef 100644 --- a/src/plugins/glsleditor/glslindenter.cpp +++ b/src/plugins/glsleditor/glslindenter.cpp @@ -115,7 +115,7 @@ TextEditor::IndentationForBlock GlslIndenter::indentationForBlocks( codeFormatter.updateStateUntil(blocks.last()); TextEditor::IndentationForBlock ret; - foreach (QTextBlock block, blocks) { + for (const QTextBlock &block : blocks) { int indent; int padding; codeFormatter.indentFor(block, &indent, &padding); |