Commit 19637bd3 authored by hjk's avatar hjk
Browse files

Fixes: debugger: remove cached projecte explorer singleton pointer

parent c2c7c98d
......@@ -339,7 +339,6 @@ void GdbOptionPage::apply()
DebuggerPlugin::DebuggerPlugin()
{
m_pm = 0;
m_generalOptionPage = 0;
m_locationMark = 0;
m_manager = 0;
......@@ -390,8 +389,6 @@ bool DebuggerPlugin::initialize(const QStringList &arguments, QString *error_mes
m_manager = new DebuggerManager;
m_pm = ExtensionSystem::PluginManager::instance();
ICore *core = ICore::instance();
QTC_ASSERT(core, return false);
......@@ -708,7 +705,7 @@ void DebuggerPlugin::extensionsInitialized()
ProjectExplorer::ProjectExplorerPlugin *DebuggerPlugin::projectExplorer() const
{
return m_pm->getObject<ProjectExplorer::ProjectExplorerPlugin>();
return ProjectExplorer::ProjectExplorerPlugin::instance();
}
/*! Activates the previous mode when the current mode is the debug mode. */
......
......@@ -104,7 +104,6 @@ private:
DebuggerManager *m_manager;
DebugMode *m_debugMode;
ExtensionSystem::PluginManager *m_pm;
GdbOptionPage *m_generalOptionPage;
QString m_previousMode;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment