summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/cpptools')
-rw-r--r--src/plugins/cpptools/cppcodemodelinspectordumper.cpp2
-rw-r--r--src/plugins/cpptools/cppsourceprocessor.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/cpptools/cppcodemodelinspectordumper.cpp b/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
index 5a6494c256..86b5c57d45 100644
--- a/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
+++ b/src/plugins/cpptools/cppcodemodelinspectordumper.cpp
@@ -93,7 +93,6 @@ QString Utils::toString(ProjectExplorer::HeaderPathType type)
{
#define CASE_LANGUAGEVERSION(x) case ProjectExplorer::HeaderPathType::x: return QLatin1String(#x"Path")
switch (type) {
- CASE_LANGUAGEVERSION(Invalid);
CASE_LANGUAGEVERSION(User);
CASE_LANGUAGEVERSION(System);
CASE_LANGUAGEVERSION(Framework);
@@ -470,7 +469,6 @@ static void printIncludeType(QTextStream &out, ProjectExplorer::HeaderPathType t
{
using ProjectExplorer::HeaderPathType;
switch (type) {
- case HeaderPathType::Invalid: out << "(invalid include path)"; break;
case HeaderPathType::User: out << "(user include path)"; break;
case HeaderPathType::System: out << "(system include path)"; break;
case HeaderPathType::Framework: out << "(framework path)"; break;
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)