forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user