diff options
author | Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> | 2014-11-20 12:50:37 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2014-12-19 10:16:37 +0100 |
commit | 205170a9e5c58d834e8fb86dc4703fa7882bd491 (patch) | |
tree | af8008506c3db9da5e4fb115e8fef04a01992f56 /src/plugins/autotoolsprojectmanager/autotoolsproject.cpp | |
parent | be7d63c99a28beabfafe8fcb1892eeaf965a42a5 (diff) | |
download | qt-creator-205170a9e5c58d834e8fb86dc4703fa7882bd491.tar.gz |
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>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager/autotoolsproject.cpp')
-rw-r--r-- | src/plugins/autotoolsprojectmanager/autotoolsproject.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp index 7091ca6e3e..2eaee72f6b 100644 --- a/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp +++ b/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp @@ -408,9 +408,7 @@ void AutotoolsProject::updateCppCodeModel() return; m_codeModelFuture.cancel(); - CppTools::ProjectInfo pInfo = modelManager->projectInfo(this); - pInfo.clearProjectParts(); - + CppTools::ProjectInfo pInfo = CppTools::ProjectInfo(this); CppTools::ProjectPartBuilder ppBuilder(pInfo); const QStringList cflags = m_makefileParserThread->cflags(); |