forked from qt-creator/qt-creator
Ios: Use setup functions for a few factories
Change-Id: Ide05c2ca859454c1745e5c243af6a3d05131194c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -413,11 +413,20 @@ FilePath IosDeviceTypeAspect::localExecutable() const
|
||||
|
||||
// IosRunConfigurationFactory
|
||||
|
||||
IosRunConfigurationFactory::IosRunConfigurationFactory()
|
||||
class IosRunConfigurationFactory final : public RunConfigurationFactory
|
||||
{
|
||||
registerRunConfiguration<IosRunConfiguration>(Constants::IOS_RUNCONFIG_ID);
|
||||
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
|
||||
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
|
||||
public:
|
||||
IosRunConfigurationFactory()
|
||||
{
|
||||
registerRunConfiguration<IosRunConfiguration>(Constants::IOS_RUNCONFIG_ID);
|
||||
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
|
||||
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
|
||||
}
|
||||
};
|
||||
|
||||
void setupIosRunConfiguration()
|
||||
{
|
||||
static IosRunConfigurationFactory theIosRunConfigurationFactory;
|
||||
}
|
||||
|
||||
} // Ios::Internal
|
||||
|
Reference in New Issue
Block a user