forked from qt-creator/qt-creator
SessionManager: Clean up methods around projects
Clean up methods around projects() and update its usages to modern language standards. Change-Id: Ia0a4574d014ce41e0d511a392e4eed4680981d0e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
committed by
Tobias Hunger
parent
0a09ba7319
commit
f2b8e9acd1
@@ -255,7 +255,7 @@ bool UpdateIncludeDependenciesVisitor::haveMatchingStereotypes(const qmt::MObjec
|
||||
QStringList UpdateIncludeDependenciesVisitor::findFilePathOfComponent(const qmt::MComponent *component)
|
||||
{
|
||||
QMultiHash<QString, Node> filePaths;
|
||||
foreach (const ProjectExplorer::Project *project, ProjectExplorer::SessionManager::projects()) {
|
||||
for (const ProjectExplorer::Project *project : ProjectExplorer::SessionManager::projects()) {
|
||||
ProjectExplorer::ProjectNode *projectNode = project->rootProjectNode();
|
||||
if (projectNode)
|
||||
collectElementPaths(projectNode, &filePaths);
|
||||
|
||||
Reference in New Issue
Block a user