forked from qt-creator/qt-creator
SessionManager: Apply 'static' pattern
Change-Id: I370f72fcf7a24216ee189979ce6b5c8bfc5f4140 Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
@@ -1206,8 +1206,7 @@ static QTextCodec *findProjectCodec(const QString &dir)
|
||||
{
|
||||
typedef QList<ProjectExplorer::Project*> ProjectList;
|
||||
// Try to find a project under which file tree the file is.
|
||||
const ProjectExplorer::SessionManager *sm = ProjectExplorer::ProjectExplorerPlugin::instance()->session();
|
||||
const ProjectList projects = sm->projects();
|
||||
const ProjectList projects = ProjectExplorer::SessionManager::projects();
|
||||
if (!projects.empty()) {
|
||||
const ProjectList::const_iterator pcend = projects.constEnd();
|
||||
for (ProjectList::const_iterator it = projects.constBegin(); it != pcend; ++it)
|
||||
|
||||
Reference in New Issue
Block a user