forked from qt-creator/qt-creator
Use const'ref in theses methods
Change-Id: Idfa5ffdcf23d1ef80442276690b8082b8279dbfa Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Laurent Montel
parent
c60103fc66
commit
86ea365a0b
@@ -312,7 +312,7 @@ QString TabSettings::indentationString(int startColumn, int targetColumn, int pa
|
||||
return s;
|
||||
}
|
||||
|
||||
void TabSettings::indentLine(QTextBlock block, int newIndent, int padding) const
|
||||
void TabSettings::indentLine(const QTextBlock &block, int newIndent, int padding) const
|
||||
{
|
||||
const QString text = block.text();
|
||||
const int oldBlockLength = text.size();
|
||||
|
||||
Reference in New Issue
Block a user