summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsourceprocessor.cpp
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-08-24 15:30:04 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-08-30 10:46:56 +0000
commit25ff15a1fbe2288b6dc53abdb4a50a642491d118 (patch)
tree3a8f9877a88a0e6ebc450147867622ccbe1a5de9 /src/plugins/cpptools/cppsourceprocessor.cpp
parent5805208cec8ed90f6caa6b1b0263ecdf162227c5 (diff)
downloadqt-creator-25ff15a1fbe2288b6dc53abdb4a50a642491d118.tar.gz
Add convenience functions for creating ProjectExplorer::HeaderPaths
Change-Id: I7b1f63caca6b70ba4ec1b1870b83cbf20aa6564a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp')
-rw-r--r--src/plugins/cpptools/cppsourceprocessor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/cpptools/cppsourceprocessor.cpp b/src/plugins/cpptools/cppsourceprocessor.cpp
index b9585f7aca..0ae4d9a5a1 100644
--- a/src/plugins/cpptools/cppsourceprocessor.cpp
+++ b/src/plugins/cpptools/cppsourceprocessor.cpp
@@ -161,8 +161,8 @@ void CppSourceProcessor::addFrameworkPath(const ProjectExplorer::HeaderPath &fra
// 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
// add only those private frameworks.
- const ProjectExplorer::HeaderPath cleanFrameworkPath(cleanPath(frameworkPath.path),
- ProjectExplorer::HeaderPathType::Framework);
+ const auto cleanFrameworkPath = ProjectExplorer::HeaderPath::makeFramework(
+ cleanPath(frameworkPath.path));
if (!m_headerPaths.contains(cleanFrameworkPath))
m_headerPaths.append(cleanFrameworkPath);
@@ -174,8 +174,8 @@ void CppSourceProcessor::addFrameworkPath(const ProjectExplorer::HeaderPath &fra
const QFileInfo privateFrameworks(framework.absoluteFilePath(),
QLatin1String("Frameworks"));
if (privateFrameworks.exists() && privateFrameworks.isDir())
- addFrameworkPath({privateFrameworks.absoluteFilePath(),
- ProjectExplorer::HeaderPathType::Framework});
+ addFrameworkPath(ProjectExplorer::HeaderPath::makeFramework(
+ privateFrameworks.absoluteFilePath()));
}
}