CppTools: Call ProjectInfo::finish when we get it

No need to require the project managers to do this. Also, it is easy to
forget.

Change-Id: I96f7a5e5547418678af9653e5753c372f0880e5a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Nikolai Kosjar
2016-12-06 13:07:00 +01:00
parent d006fc4149
commit 521423b433
8 changed files with 8 additions and 29 deletions

View File

@@ -623,7 +623,6 @@ CppTools::ProjectInfo createProjectInfo(ProjectExplorer::Project *project,
const CppTools::ProjectPart::Ptr projectPart = createProjectPart(files, defines);
ProjectInfo projectInfo = ProjectInfo(project);
projectInfo.appendProjectPart(projectPart);
projectInfo.finish();
return projectInfo;
}