ProjectExplorer: Use unique_ptr to store KitInformation

Change-Id: I406b6bed005fb7455e6ee41d81a2f314584a051a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
Tobias Hunger
2018-07-03 11:49:25 +02:00
parent 6aeb06c8d3
commit 05fb67fee7
9 changed files with 32 additions and 30 deletions

View File

@@ -140,7 +140,7 @@ bool QmakeProjectManagerPlugin::initialize(const QStringList &arguments, QString
//create and register objects
ProjectManager::registerProjectType<QmakeProject>(QmakeProjectManager::Constants::PROFILE_MIMETYPE);
ProjectExplorer::KitManager::registerKitInformation(new QmakeKitInformation);
ProjectExplorer::KitManager::registerKitInformation<QmakeKitInformation>();
IWizardFactory::registerFactoryCreator([] {
return QList<IWizardFactory *> {