Commit 2f34671e authored by Tobias Hunger's avatar Tobias Hunger
Browse files

More direct comparison of Core::Ids



Change-Id: I8bd29d64bad6a30927ef73845c5bd8cb5337700c
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent c3cd38ac
......@@ -613,7 +613,7 @@ bool Qt4BuildConfigurationFactory::canCreate(const Target *parent, const Core::I
{
if (!canHandle(parent))
return false;
return id == QT4_BC_ID;
return id == Core::Id(QT4_BC_ID);
}
BuildConfiguration *Qt4BuildConfigurationFactory::create(ProjectExplorer::Target *parent, const Core::Id id, const QString &name)
......@@ -680,7 +680,7 @@ bool Qt4BuildConfigurationFactory::canRestore(const Target *parent, const QVaria
{
if (!canHandle(parent))
return false;
return ProjectExplorer::idFromMap(map).toString() == QLatin1String(QT4_BC_ID);
return ProjectExplorer::idFromMap(map) == Core::Id(QT4_BC_ID);
}
BuildConfiguration *Qt4BuildConfigurationFactory::restore(Target *parent, const QVariantMap &map)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment