summaryrefslogtreecommitdiff
path: root/src/plugins/autotoolsprojectmanager/autotoolsproject.cpp
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-20 12:50:37 +0100
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2014-12-19 10:16:37 +0100
commit205170a9e5c58d834e8fb86dc4703fa7882bd491 (patch)
treeaf8008506c3db9da5e4fb115e8fef04a01992f56 /src/plugins/autotoolsprojectmanager/autotoolsproject.cpp
parentbe7d63c99a28beabfafe8fcb1892eeaf965a42a5 (diff)
downloadqt-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.cpp4
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();