From 2b4cadf1fe138bfa23ca42ffe63c9da5d4d8827c Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Wed, 13 Jan 2016 14:12:15 +0100 Subject: CppTools: Move ProjectPart in its own header file Also extracting inline HeaderPath class and change projects list in vector because the size is larger than a pointer. Change-Id: I885fdff3fe9bccc877634d1615249755f5b674fd Reviewed-by: Nikolai Kosjar --- src/plugins/cpptools/cppsourceprocessor_test.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/cpptools/cppsourceprocessor_test.cpp') diff --git a/src/plugins/cpptools/cppsourceprocessor_test.cpp b/src/plugins/cpptools/cppsourceprocessor_test.cpp index bdc2cf2a38..487003f8c8 100644 --- a/src/plugins/cpptools/cppsourceprocessor_test.cpp +++ b/src/plugins/cpptools/cppsourceprocessor_test.cpp @@ -68,9 +68,9 @@ public: { QScopedPointer sourceProcessor( CppModelManager::createSourceProcessor()); - const ProjectPart::HeaderPath hp(TestIncludePaths::directoryOfTestFile(), - ProjectPart::HeaderPath::IncludePath); - sourceProcessor->setHeaderPaths(ProjectPart::HeaderPaths() << hp); + const ProjectPartHeaderPath hp(TestIncludePaths::directoryOfTestFile(), + ProjectPartHeaderPath::IncludePath); + sourceProcessor->setHeaderPaths(ProjectPartHeaderPaths() << hp); sourceProcessor->run(filePath); Document::Ptr document = m_cmm->document(filePath); @@ -212,9 +212,9 @@ void CppToolsPlugin::test_cppsourceprocessor_includeNext() CppSourceProcessor::DocumentCallback documentCallback = [](const Document::Ptr &){}; CppSourceProcessor sourceProcessor(Snapshot(), documentCallback); - ProjectPart::HeaderPaths headerPaths = ProjectPart::HeaderPaths() - << ProjectPart::HeaderPath(customHeaderPath, ProjectPart::HeaderPath::IncludePath) - << ProjectPart::HeaderPath(systemHeaderPath, ProjectPart::HeaderPath::IncludePath); + ProjectPartHeaderPaths headerPaths = ProjectPartHeaderPaths() + << ProjectPartHeaderPath(customHeaderPath, ProjectPartHeaderPath::IncludePath) + << ProjectPartHeaderPath(systemHeaderPath, ProjectPartHeaderPath::IncludePath); sourceProcessor.setHeaderPaths(headerPaths); sourceProcessor.run(mainFilePath); -- cgit v1.2.1