forked from qt-creator/qt-creator
CppTools: Move Project{Part,Info} to new cppprojects.{h,cpp}
Change-Id: Ieff216017b9da1e6a12121688ea9572bdd81fd9b Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
committed by
Erik Verbruggen
parent
b8a6a4dd4e
commit
6b5298faf9
@@ -1903,9 +1903,9 @@ void AddIncludeForUndefinedIdentifier::match(const CppQuickFixInterface &interfa
|
||||
// find the include paths
|
||||
ProjectPart::HeaderPaths headerPaths;
|
||||
CppModelManagerInterface *modelManager = CppModelManagerInterface::instance();
|
||||
QList<CppModelManagerInterface::ProjectInfo> projectInfos = modelManager->projectInfos();
|
||||
QList<ProjectInfo> projectInfos = modelManager->projectInfos();
|
||||
bool inProject = false;
|
||||
foreach (const CppModelManagerInterface::ProjectInfo &info, projectInfos) {
|
||||
foreach (const ProjectInfo &info, projectInfos) {
|
||||
foreach (ProjectPart::Ptr part, info.projectParts()) {
|
||||
foreach (const ProjectFile &file, part->files) {
|
||||
if (file.path == doc->fileName()) {
|
||||
|
||||
Reference in New Issue
Block a user