diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-07-07 14:20:12 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2015-07-14 13:27:31 +0000 |
commit | 6d817307647fe1c3ab0b1d511b44479f8cde7fb7 (patch) | |
tree | 2a500b5118b5721c9c06857cbb3ea8d0b7e22306 /src/plugins/projectexplorer/customtoolchain.cpp | |
parent | 468337c56b152bac89a2164b18c0d282ced07d43 (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.cpp | 3 |
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) |