forked from qt-creator/qt-creator
Various places: performance-for-range-copy
Change-Id: I475990d32a5211d31a77782667a2dfedba134137 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user