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:
@@ -200,7 +200,7 @@ ImportKey ImportKey::flatKey() const {
|
||||
|
||||
QString ImportKey::libraryQualifiedPath() const
|
||||
{
|
||||
QString res = splitPath.join(QString::fromLatin1("."));
|
||||
QString res = splitPath.join(QLatin1Char('.'));
|
||||
if (res.isEmpty() && !splitPath.isEmpty())
|
||||
return QLatin1String("");
|
||||
return res;
|
||||
@@ -208,7 +208,7 @@ QString ImportKey::libraryQualifiedPath() const
|
||||
|
||||
QString ImportKey::path() const
|
||||
{
|
||||
QString res = splitPath.join(QString::fromLatin1("/"));
|
||||
QString res = splitPath.join(QLatin1Char('/'));
|
||||
if (res.isEmpty() && !splitPath.isEmpty())
|
||||
return QLatin1String("/");
|
||||
return res;
|
||||
@@ -442,7 +442,7 @@ QString ImportKey::toString() const
|
||||
res = path();
|
||||
break;
|
||||
case ImportType::Library:
|
||||
res = splitPath.join(QLatin1String("."));
|
||||
res = splitPath.join(QLatin1Char('.'));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user