forked from qt-creator/qt-creator
Use Qt 5's QStringList::join(QChar)
Less typing and less cycles than join(QString) where appropriate Change-Id: I6ebc0e17e4d7fd9845864dd95b7de4ba4dad6906 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
@@ -301,7 +301,7 @@ protected:
|
||||
continue;
|
||||
|
||||
// the extra space is to avoid // comments sticking to the 0 offset
|
||||
QString indentLine = newContext.join(QLatin1String("\n")) + QLatin1String("\n ") + restLine;
|
||||
QString indentLine = newContext.join(QLatin1Char('\n')) + QLatin1String("\n ") + restLine;
|
||||
int indent = tryIndent(indentLine);
|
||||
|
||||
QList<Split> newSplits = possibleSplits.mid(i + 1);
|
||||
|
||||
Reference in New Issue
Block a user