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:
@@ -204,7 +204,7 @@ QString ParseData::prettyStringForEvent(const QString &event)
|
||||
|
||||
// add original abbreviation
|
||||
prettyString << QLatin1Char('(') + event + QLatin1Char(')');
|
||||
return prettyString.join(QString(QLatin1Char(' ')));
|
||||
return prettyString.join(QLatin1Char(' '));
|
||||
}
|
||||
|
||||
QStringList ParseData::events() const
|
||||
|
||||
@@ -100,7 +100,7 @@ RunControl *ValgrindRunControlFactory::create(RunConfiguration *runConfiguration
|
||||
sp.startMode = StartRemote;
|
||||
sp.debuggee = rc2->remoteExecutableFilePath();
|
||||
sp.connParams = DeviceKitInformation::device(rc2->target()->kit())->sshParameters();
|
||||
sp.debuggeeArgs = rc2->arguments().join(QLatin1String(" "));
|
||||
sp.debuggeeArgs = rc2->arguments().join(QLatin1Char(' '));
|
||||
} else {
|
||||
QTC_ASSERT(false, return 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user