Fixes: debugger: remove cached projecte explorer singleton pointer

This commit is contained in:
hjk
2009-01-28 14:18:59 +01:00
parent c2c7c98d12
commit 19637bd37f
2 changed files with 1 additions and 5 deletions

View File

@@ -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. */