forked from qt-creator/qt-creator
AnalyerRunControl: Don't store the runconfiguration
There is no gurantee that the runconfiguration stays alive after creation. Change-Id: Ia520cc33a89ec56ad6a9b928f841eb4551732ae0 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -53,7 +53,6 @@ AnalyzerRunControl::AnalyzerRunControl(const AnalyzerStartParameters &sp,
|
||||
{
|
||||
setIcon(QLatin1String(":/images/analyzer_start_small.png"));
|
||||
|
||||
m_runConfig = runConfiguration;
|
||||
m_sp = sp;
|
||||
|
||||
connect(this, &AnalyzerRunControl::finished,
|
||||
@@ -101,7 +100,7 @@ bool AnalyzerRunControl::isRunning() const
|
||||
|
||||
QString AnalyzerRunControl::displayName() const
|
||||
{
|
||||
return m_runConfig ? m_runConfig->displayName() : m_sp.displayName;
|
||||
return m_sp.displayName;
|
||||
}
|
||||
|
||||
} // namespace Analyzer
|
||||
|
@@ -68,9 +68,6 @@ public:
|
||||
virtual void pause() {}
|
||||
virtual void unpause() {}
|
||||
|
||||
/// The active run configuration for this engine, might be zero.
|
||||
ProjectExplorer::RunConfiguration *runConfiguration() const { return m_runConfig; }
|
||||
|
||||
/// The start parameters for this engine.
|
||||
const AnalyzerStartParameters &startParameters() const { return m_sp; }
|
||||
|
||||
@@ -98,8 +95,6 @@ signals:
|
||||
|
||||
private:
|
||||
bool supportsReRunning() const { return false; }
|
||||
|
||||
ProjectExplorer::RunConfiguration *m_runConfig;
|
||||
AnalyzerStartParameters m_sp;
|
||||
};
|
||||
} // namespace Analyzer
|
||||
|
Reference in New Issue
Block a user