Clang: Adjust singleton access style to more recent use.

Change-Id: I7d98f598b1c7f7b871a862ec121b83128d8b2752
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
hjk
2014-02-04 15:15:03 +01:00
parent d963ad4167
commit 944d80dcdc

View File

@@ -36,7 +36,6 @@
#include <coreplugin/icore.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <cpptools/cppmodelmanagerinterface.h>
#include <projectexplorer/projectexplorer.h>
#include <projectexplorer/session.h>
#include <QDir>
@@ -72,10 +71,8 @@ ClangIndexer::ClangIndexer()
connect(m_clangIndexer, SIGNAL(indexingStarted(QFuture<void>)),
this, SLOT(onIndexingStarted(QFuture<void>)));
ProjectExplorer::ProjectExplorerPlugin *pe =
ProjectExplorer::ProjectExplorerPlugin::instance();
QObject *session = ProjectExplorer::SessionManager::instance();
ProjectExplorer::SessionManager *session = pe->session();
connect(session, SIGNAL(aboutToLoadSession(QString)),
this, SLOT(onAboutToLoadSession(QString)));
connect(session, SIGNAL(sessionLoaded(QString)),