forked from qt-creator/qt-creator
RunControl: Rename the misleading arg in createWorker()
It describes run mode id, not worker id. Change-Id: I0ddafdb20b2ce4aae6fede2ae289ae30498004ab Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -503,11 +503,11 @@ void RunControl::forceStop()
|
||||
}
|
||||
}
|
||||
|
||||
RunWorker *RunControl::createWorker(Id workerId)
|
||||
RunWorker *RunControl::createWorker(Id runMode)
|
||||
{
|
||||
const Id deviceType = DeviceTypeKitAspect::deviceTypeId(d->kit);
|
||||
for (RunWorkerFactory *factory : std::as_const(g_runWorkerFactories)) {
|
||||
if (factory->canCreate(workerId, deviceType, d->runConfigId.toString()))
|
||||
if (factory->canCreate(runMode, deviceType, d->runConfigId.toString()))
|
||||
return factory->create(this);
|
||||
}
|
||||
return nullptr;
|
||||
|
@@ -228,7 +228,7 @@ public:
|
||||
|
||||
static void provideAskPassEntry(Utils::Environment &env);
|
||||
|
||||
RunWorker *createWorker(Utils::Id workerId);
|
||||
RunWorker *createWorker(Utils::Id runMode);
|
||||
|
||||
bool createMainWorker();
|
||||
static bool canRun(Utils::Id runMode, Utils::Id deviceType, Utils::Id runConfigId);
|
||||
|
Reference in New Issue
Block a user