aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/textindenter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/texteditor/textindenter.cpp')
-rw-r--r--src/plugins/texteditor/textindenter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/textindenter.cpp b/src/plugins/texteditor/textindenter.cpp
index fcb04d5fa6..c23326fa34 100644
--- a/src/plugins/texteditor/textindenter.cpp
+++ b/src/plugins/texteditor/textindenter.cpp
@@ -78,7 +78,7 @@ IndentationForBlock TextIndenter::indentationForBlocks(const QVector<QTextBlock>
int /*cursorPositionInEditor*/)
{
IndentationForBlock ret;
- for (QTextBlock block : blocks)
+ for (const QTextBlock &block : blocks)
ret.insert(block.blockNumber(), indentFor(block, tabSettings));
return ret;
}