summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppsourceprocessor.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-09-13 11:48:36 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-09-13 11:32:43 +0000
commit570fe88970e121f31cb0466c6c0aa7de490f919b (patch)
treea04f3c71576eb47b5dd92323bbdc9a3180b329e0 /src/plugins/cpptools/cppsourceprocessor.cpp
parent1df553a68308c7be274fe95890f063ef367a2674 (diff)
downloadqt-creator-570fe88970e121f31cb0466c6c0aa7de490f919b.tar.gz
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 <marco.bubke@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppsourceprocessor.cpp')
-rw-r--r--src/plugins/cpptools/cppsourceprocessor.cpp2
1 files changed, 1 insertions, 1 deletions
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)