ProjectExplorer: Limit the usage of qMakePair

Make the code less verbose.

Change-Id: If9fe08a6a7538d34c80ca97a2aec21a2bd6e5d22
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2022-09-30 15:57:27 +02:00
parent 50f2f57f6a
commit 898053533a
14 changed files with 56 additions and 61 deletions

View File

@@ -596,7 +596,7 @@ static QPair<QString, QString> rawIdData(const QVariantMap &data)
const QString raw = data.value(QLatin1String(ID_KEY)).toString();
const int pos = raw.indexOf(QLatin1Char(':'));
QTC_ASSERT(pos > 0, return qMakePair(QString::fromLatin1("unknown"), QString::fromLatin1("unknown")));
return qMakePair(raw.mid(0, pos), raw.mid(pos + 1));
return {raw.mid(0, pos), raw.mid(pos + 1)};
}
QByteArray ToolChainFactory::idFromMap(const QVariantMap &data)