From c763d4d78711d4fdf01ce8aa713383a0a131a39e Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 13 Sep 2018 12:58:38 +0200 Subject: ProjectExplorer: Remove HeaderPath::isFrameworkPath None of the other types has a query function, so remove this one, too. Change-Id: I936d162e092c8f9361b0e3bb86676e68905d2f4b Reviewed-by: Marco Bubke --- src/plugins/cpptools/cppsourceprocessor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp') diff --git a/src/plugins/cpptools/cppsourceprocessor.cpp b/src/plugins/cpptools/cppsourceprocessor.cpp index 0f9b94a30f..54e93ce41a 100644 --- a/src/plugins/cpptools/cppsourceprocessor.cpp +++ b/src/plugins/cpptools/cppsourceprocessor.cpp @@ -159,7 +159,7 @@ void CppSourceProcessor::setLanguageFeatures(const LanguageFeatures languageFeat // if the "Frameworks" folder exists inside the top level framework. void CppSourceProcessor::addFrameworkPath(const ProjectExplorer::HeaderPath &frameworkPath) { - QTC_ASSERT(frameworkPath.isFrameworkPath(), return); + QTC_ASSERT(frameworkPath.type == ProjectExplorer::HeaderPathType::Framework, return); // The algorithm below is a bit too eager, but that's because we're not getting // in the frameworks we're linking against. If we would have that, then we could @@ -303,7 +303,7 @@ QString CppSourceProcessor::resolveFile_helper(const QString &fileName, for (; headerPathsIt != headerPathsEnd; ++headerPathsIt) { if (!headerPathsIt->path.isNull()) { QString path; - if (headerPathsIt->isFrameworkPath()) { + if (headerPathsIt->type == ProjectExplorer::HeaderPathType::Framework) { if (index == -1) continue; path = headerPathsIt->path + fileName.left(index) -- cgit v1.2.1