WebAssembly: use a dedicated class to create EmrunRunWorker

Change-Id: Idbeece82d8b59f02148207b0459a76aae162bb51
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
hjk
2023-01-06 14:32:11 +01:00
parent 57adf73a89
commit 82c1a3a934
4 changed files with 22 additions and 27 deletions

View File

@@ -25,8 +25,7 @@ using namespace Core;
using namespace ProjectExplorer;
using namespace Utils;
namespace WebAssembly {
namespace Internal {
namespace WebAssembly::Internal {
class WebAssemblyPluginPrivate
{
@@ -35,11 +34,7 @@ public:
WebAssemblyDeviceFactory deviceFactory;
WebAssemblyQtVersionFactory qtVersionFactory;
EmrunRunConfigurationFactory emrunRunConfigurationFactory;
RunWorkerFactory emrunRunWorkerFactory{
makeEmrunWorker(),
{ProjectExplorer::Constants::NORMAL_RUN_MODE},
{Constants::WEBASSEMBLY_RUNCONFIGURATION_EMRUN}
};
EmrunRunWorkerFactory emrunRunWorkerFactory;
WebAssemblyOptionsPage optionsPage;
};
@@ -94,5 +89,4 @@ void WebAssemblyPlugin::askUserAboutEmSdkSetup()
ICore::infoBar()->addInfo(info);
}
} // namespace Internal
} // namespace WebAssembly
} // WebAssembly::Internal