diff --git a/src/plugins/clangcodemodel/clangindexer.cpp b/src/plugins/clangcodemodel/clangindexer.cpp index 34449b2f3c6..160636b2df7 100644 --- a/src/plugins/clangcodemodel/clangindexer.cpp +++ b/src/plugins/clangcodemodel/clangindexer.cpp @@ -36,7 +36,6 @@ #include #include #include -#include #include #include @@ -72,10 +71,8 @@ ClangIndexer::ClangIndexer() connect(m_clangIndexer, SIGNAL(indexingStarted(QFuture)), this, SLOT(onIndexingStarted(QFuture))); - 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)),