aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customtoolchain.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-07-07 12:01:22 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-07-09 11:07:12 +0000
commitcbf302893d6d95e0f961238a6c59d4b00b9536ea (patch)
tree309e6479014362f8867347472f9ed6abea65fd75 /src/plugins/projectexplorer/customtoolchain.cpp
parent6d5a5aff9462b4253047f0ed2707ffa2e3497a19 (diff)
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>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index aa4579672e..52b59eaaeb 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -78,11 +78,11 @@ static const char messageCapKeyC[] = "ProjectExplorer.CustomToolChain.MessageCap
// --------------------------------------------------------------------------
CustomToolChain::CustomToolChain(Detection d) :
- ToolChain(QLatin1String(Constants::CUSTOM_TOOLCHAIN_ID), d),
+ ToolChain(Constants::CUSTOM_TOOLCHAIN_ID, d),
m_outputParser(Gcc)
{ }
-CustomToolChain::CustomToolChain(const QString &id, Detection d) :
+CustomToolChain::CustomToolChain(const QByteArray &id, Detection d) :
ToolChain(id, d)
{ }
@@ -407,8 +407,8 @@ ToolChain *CustomToolChainFactory::create()
// Used by the ToolChainManager to restore user-generated tool chains
bool CustomToolChainFactory::canRestore(const QVariantMap &data)
{
- const QString id = idFromMap(data);
- return id.startsWith(QLatin1String(Constants::CUSTOM_TOOLCHAIN_ID) + QLatin1Char(':'));
+ const QByteArray id = idFromMap(data);
+ return id.startsWith(QByteArray(Constants::CUSTOM_TOOLCHAIN_ID) + ':');
}
ToolChain *CustomToolChainFactory::restore(const QVariantMap &data)