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
@@ -107,7 +107,7 @@ static bool insertQuote(const QChar ch, const BackwardsScanner &tk)
|
||||
&& stringLiteralPrefixes.contains(tk.text(index));
|
||||
}
|
||||
|
||||
static int countSkippedChars(const QString blockText, const QString &textToProcess)
|
||||
static int countSkippedChars(const QString &blockText, const QString &textToProcess)
|
||||
{
|
||||
int skippedChars = 0;
|
||||
const int length = qMin(blockText.length(), textToProcess.length());
|
||||
|
||||
Reference in New Issue
Block a user