ToolChain: Turn id into a QByteArray

That should take a couple of bytes less to store. Make sure this
change is invisible to the configuration files.

Change-Id: If5e73b52493c9164de9e342021d8153d274b350f
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2015-07-07 12:01:22 +02:00
parent 6d5a5aff94
commit cbf302893d
22 changed files with 74 additions and 78 deletions

View File

@@ -64,9 +64,8 @@ static void setQnxEnvironment(Utils::Environment &env, const QList<Utils::Enviro
}
QnxToolChain::QnxToolChain(ToolChain::Detection d)
: GccToolChain(QLatin1String(Constants::QNX_TOOLCHAIN_ID), d)
{
}
: GccToolChain(Constants::QNX_TOOLCHAIN_ID, d)
{ }
QString QnxToolChain::type() const
{
@@ -164,8 +163,8 @@ QnxToolChainFactory::QnxToolChainFactory()
bool QnxToolChainFactory::canRestore(const QVariantMap &data)
{
const QString id = idFromMap(data);
return id.startsWith(QLatin1String(Constants::QNX_TOOLCHAIN_ID) + QLatin1Char(':'));
const QByteArray id = idFromMap(data);
return id.startsWith(QByteArray(Constants::QNX_TOOLCHAIN_ID) + ':');
}
ToolChain *QnxToolChainFactory::restore(const QVariantMap &data)