Don't accumulate includePaths and frameworkPaths on each parsing

GenericProject was adding includePaths and frameworkPaths to ProjectInfo
on each parsing instead of updating their values.

Change-Id: Id60f553909e4a9829b9001e7dd54bbb7ed7623ce
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
Konstantin Tokarev
2012-02-11 19:25:38 +04:00
committed by Daniel Teske
parent 7f44b1e588
commit 3978875fec

View File

@@ -261,6 +261,9 @@ void GenericProject::refresh(RefreshOptions options)
CPlusPlus::CppModelManagerInterface::ProjectPart::Ptr part(
new CPlusPlus::CppModelManagerInterface::ProjectPart);
pinfo.frameworkPaths.clear();
pinfo.includePaths.clear();
if (m_toolChain) {
part->defines = m_toolChain->predefinedMacros(QStringList());
part->defines += '\n';