Debugger: Simplify DebuggerRunControl construction

The indirection was to prevent "others" to create "wrong"
DebuggerRunControls, but this is getting into the way now when
making the DebuggerRunControls/DebuggerEngine a ToolRunner.

Change-Id: I6c45e28affebc6b8db16c5d4bbc77325ef63604f
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2017-04-05 16:51:53 +02:00
parent fa3d597e5f
commit 8e56c5be3e
2 changed files with 14 additions and 19 deletions

View File

@@ -63,6 +63,9 @@ class DEBUGGER_EXPORT DebuggerRunControl : public ProjectExplorer::RunControl
Q_OBJECT
public:
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfig,
Internal::DebuggerEngine *engine);
~DebuggerRunControl() override;
// ProjectExplorer::RunControl
@@ -96,12 +99,6 @@ signals:
private:
void handleFinished();
friend DebuggerRunControl *createHelper(ProjectExplorer::RunConfiguration *runConfig,
Internal::DebuggerEngine *engine);
DebuggerRunControl(ProjectExplorer::RunConfiguration *runConfig,
Internal::DebuggerEngine *engine);
Internal::DebuggerEngine *m_engine;
OutputProcessor *m_outputProcessor = 0;
};