From ab1abcef8bc912a95b4adff2471b8fa3ee82ca3c Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Fri, 27 Sep 2024 16:11:38 +0200 Subject: [PATCH] RunControl: Rename the misleading arg in createWorker() It describes run mode id, not worker id. Change-Id: I0ddafdb20b2ce4aae6fede2ae289ae30498004ab Reviewed-by: hjk --- src/plugins/projectexplorer/runcontrol.cpp | 4 ++-- src/plugins/projectexplorer/runcontrol.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index c3f0a153f6d..23ff5d09e6c 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -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; diff --git a/src/plugins/projectexplorer/runcontrol.h b/src/plugins/projectexplorer/runcontrol.h index efb3abf44b8..25b8424a483 100644 --- a/src/plugins/projectexplorer/runcontrol.h +++ b/src/plugins/projectexplorer/runcontrol.h @@ -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);