aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remotelinux
diff options
context:
space:
mode:
authorJarek Kobus <[email protected]>2025-04-04 11:03:14 +0200
committerJarek Kobus <[email protected]>2025-04-04 11:59:18 +0000
commit96e12bb4d0ee41fae82bae8735ddf33e3e6ac300 (patch)
tree697560cbd1c16adde9aaec78a3539e84f60ec838 /src/plugins/remotelinux
parented311592afd2849f6baca8f97749ac27945b44ed (diff)
ProcessRunner: Modify start modifier signature
Pass reference to Process inside setStartModifier(). Get rid of ProcessRunner's setters. Task-number: QTCREATORBUG-29168 Change-Id: Ib2dac5a1fbb0a0a4706fbb03896aa302c75d012c Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/remotelinux')
-rw-r--r--src/plugins/remotelinux/remotelinuxdebugsupport.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
index f950967d54b..32291f9d126 100644
--- a/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
+++ b/src/plugins/remotelinux/remotelinuxdebugsupport.cpp
@@ -5,12 +5,14 @@
#include "remotelinux_constants.h"
+#include <debugger/debuggerruncontrol.h>
+
#include <projectexplorer/devicesupport/idevice.h>
#include <projectexplorer/projectexplorerconstants.h>
#include <projectexplorer/qmldebugcommandlinearguments.h>
#include <projectexplorer/runconfigurationaspects.h>
-#include <debugger/debuggerruncontrol.h>
+#include <utils/qtcprocess.h>
using namespace Debugger;
using namespace ProjectExplorer;
@@ -85,12 +87,12 @@ public:
runworker->addStartDependency(worker);
worker->addStopDependency(runworker);
- worker->setStartModifier([worker, runControl] {
+ worker->setStartModifier([runControl](Process &process) {
QmlDebugServicesPreset services = servicesForRunMode(runControl->runMode());
CommandLine cmd = runControl->commandLine();
cmd.addArg(qmlDebugTcpArguments(services, runControl->qmlChannel()));
- worker->setCommandLine(cmd);
+ process.setCommand(cmd);
});
return worker;
});