From 570fe88970e121f31cb0466c6c0aa7de490f919b Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Thu, 13 Sep 2018 11:48:36 +0200 Subject: ProjectExplorer: Remove HeaderPath::isValid and related code HeaderPath with an Null path are invalid, there is no need to have a special type for that. Change-Id: Ied102fbe523a8cf17e8b385ee89b099517a6d598 Reviewed-by: Marco Bubke --- src/plugins/cpptools/cppsourceprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp') diff --git a/src/plugins/cpptools/cppsourceprocessor.cpp b/src/plugins/cpptools/cppsourceprocessor.cpp index b16fe4b599..0f9b94a30f 100644 --- a/src/plugins/cpptools/cppsourceprocessor.cpp +++ b/src/plugins/cpptools/cppsourceprocessor.cpp @@ -301,7 +301,7 @@ QString CppSourceProcessor::resolveFile_helper(const QString &fileName, auto headerPathsEnd = m_headerPaths.end(); const int index = fileName.indexOf(QLatin1Char('/')); for (; headerPathsIt != headerPathsEnd; ++headerPathsIt) { - if (headerPathsIt->isValid()) { + if (!headerPathsIt->path.isNull()) { QString path; if (headerPathsIt->isFrameworkPath()) { if (index == -1) -- cgit v1.2.1