aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp
diff options
context:
space:
mode:
authorhjk <hjk@theqtcompany.com>2016-01-27 13:27:06 +0100
committerhjk <hjk@theqtcompany.com>2016-01-27 15:29:11 +0000
commit61709e92665cb70fddc8b5a5cd98e716a078ed1d (patch)
treef951603099a30ce1f58ad67b961b5f8be7199cda /src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp
parentfa17e27b7fe95d5b72927ad2b2fc3e7fedaf3d47 (diff)
Analyzer: Use a StandardRunnable instead of an AnalyzerRunnable
... with a lot potential to code consolidation. Change-Id: I4d3a7fcc1cc6ae8763799f18cf9701695f387791 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp')
-rw-r--r--src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp
index 0929664d932..cf9754099f7 100644
--- a/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp
+++ b/src/plugins/qmlprofiler/qmlprofilerruncontrolfactory.cpp
@@ -73,10 +73,7 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat
{
QTC_ASSERT(canRun(runConfiguration, mode), return 0);
QTC_ASSERT(runConfiguration->runnable().is<StandardRunnable>(), return 0);
- auto &rcRunnable = runConfiguration->runnable().as<StandardRunnable>();
- AnalyzerRunnable runnable;
- runnable.debuggee = rcRunnable.executable;
- runnable.debuggeeArgs = rcRunnable.commandLineArguments;
+ auto runnable = runConfiguration->runnable().as<StandardRunnable>();
Kit *kit = runConfiguration->target()->kit();
AnalyzerConnection connection;
@@ -104,8 +101,8 @@ RunControl *QmlProfilerRunControlFactory::create(RunConfiguration *runConfigurat
runControl->setConnection(connection);
LocalQmlProfilerRunner::Configuration conf;
- conf.executable = runnable.debuggee;
- conf.executableArguments = runnable.debuggeeArgs;
+ conf.executable = runnable.executable;
+ conf.executableArguments = runnable.commandLineArguments;
conf.workingDirectory = runControl->workingDirectory();
conf.socket = connection.analyzerSocket;
if (EnvironmentAspect *environment = runConfiguration->extraAspect<EnvironmentAspect>())