aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/customtoolchain.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-07-07 14:20:12 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-07-14 13:27:31 +0000
commit6d817307647fe1c3ab0b1d511b44479f8cde7fb7 (patch)
tree2a500b5118b5721c9c06857cbb3ea8d0b7e22306 /src/plugins/projectexplorer/customtoolchain.cpp
parent468337c56b152bac89a2164b18c0d282ced07d43 (diff)
ToolChainFactory: Add typeIdFromMap and use it in factories
Change-Id: Id3254bcb3a5c426540bbab49dc61545031af6826 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/customtoolchain.cpp')
-rw-r--r--src/plugins/projectexplorer/customtoolchain.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/customtoolchain.cpp b/src/plugins/projectexplorer/customtoolchain.cpp
index dd445dbdd9..142d47dcd5 100644
--- a/src/plugins/projectexplorer/customtoolchain.cpp
+++ b/src/plugins/projectexplorer/customtoolchain.cpp
@@ -394,8 +394,7 @@ ToolChain *CustomToolChainFactory::create()
// Used by the ToolChainManager to restore user-generated tool chains
bool CustomToolChainFactory::canRestore(const QVariantMap &data)
{
- const QByteArray id = idFromMap(data);
- return id.startsWith(QByteArray(Constants::CUSTOM_TOOLCHAIN_ID) + ':');
+ return typeIdFromMap(data) == Constants::CUSTOM_TOOLCHAIN_ID;
}
ToolChain *CustomToolChainFactory::restore(const QVariantMap &data)