forked from qt-creator/qt-creator
CppTools: Create ProjectInfos explicitly
...instead of going through CppModelManager::projectInfo(). Now CppModelManager::projectInfo() returns an invalid ProjectInfo in case there is no valid data for the given Project. Change-Id: I11908bf2ddf865b1d3d71ff176eaf4139292b21c Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
be7d63c99a
commit
205170a9e5
@@ -590,7 +590,7 @@ QList<ProjectInfo> CppModelManager::projectInfos() const
|
||||
ProjectInfo CppModelManager::projectInfo(ProjectExplorer::Project *project) const
|
||||
{
|
||||
QMutexLocker locker(&d->m_projectMutex);
|
||||
return d->m_projectToProjectsInfo.value(project, ProjectInfo(project));
|
||||
return d->m_projectToProjectsInfo.value(project, ProjectInfo());
|
||||
}
|
||||
|
||||
/// \brief Remove all files and their includes (recursively) of given ProjectInfo from the snapshot.
|
||||
|
Reference in New Issue
Block a user