diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2018-09-13 12:58:38 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2018-09-13 11:32:59 +0000 |
commit | c763d4d78711d4fdf01ce8aa713383a0a131a39e (patch) | |
tree | 531eb6fdc5cd023d831d0fdd5d55679bb58e44d9 /src/plugins/cpptools/cppsourceprocessor.cpp | |
parent | 11245564da74a3054de4e312b5e120811cc4a536 (diff) | |
download | qt-creator-c763d4d78711d4fdf01ce8aa713383a0a131a39e.tar.gz |
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 <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp')
-rw-r--r-- | src/plugins/cpptools/cppsourceprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |