forked from qt-creator/qt-creator
Core/Utils: Migrate further to Utils::Id
The coreplugin/id.h header is kept for downstream for now. Change-Id: I8c44590f7b988b3770ecdc177c40783e12353e66 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -82,16 +82,16 @@ ProjectExplorer::KitAspectWidget *NinjaToolKitAspect::createConfigWidget(Project
|
||||
return new ToolKitAspectWidget{k, this, ToolKitAspectWidget::ToolType::Ninja};
|
||||
}
|
||||
|
||||
void NinjaToolKitAspect::setNinjaTool(ProjectExplorer::Kit *kit, Core::Id id)
|
||||
void NinjaToolKitAspect::setNinjaTool(ProjectExplorer::Kit *kit, Utils::Id id)
|
||||
{
|
||||
QTC_ASSERT(kit && id.isValid(), return );
|
||||
kit->setValue(TOOL_ID, id.toSetting());
|
||||
}
|
||||
|
||||
Core::Id NinjaToolKitAspect::ninjaToolId(const ProjectExplorer::Kit *kit)
|
||||
Utils::Id NinjaToolKitAspect::ninjaToolId(const ProjectExplorer::Kit *kit)
|
||||
{
|
||||
QTC_ASSERT(kit, return {});
|
||||
return Core::Id::fromSetting(kit->value(TOOL_ID));
|
||||
return Utils::Id::fromSetting(kit->value(TOOL_ID));
|
||||
}
|
||||
} // namespace Internal
|
||||
} // namespace MesonProjectManager
|
||||
|
||||
Reference in New Issue
Block a user