aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/headerpath.h
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/projectexplorer/headerpath.h
parent1df553a68308c7be274fe95890f063ef367a2674 (diff)
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/projectexplorer/headerpath.h')
-rw-r--r--src/plugins/projectexplorer/headerpath.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/projectexplorer/headerpath.h b/src/plugins/projectexplorer/headerpath.h
index db0bb4cc1f..932c256f33 100644
--- a/src/plugins/projectexplorer/headerpath.h
+++ b/src/plugins/projectexplorer/headerpath.h
@@ -31,7 +31,6 @@
namespace ProjectExplorer {
enum class HeaderPathType {
- Invalid,
User,
System,
Framework
@@ -45,11 +44,6 @@ public:
: path(path), type(type)
{ }
- bool isValid() const
- {
- return type != HeaderPathType::Invalid;
- }
-
bool isFrameworkPath() const
{
return type == HeaderPathType::Framework;
@@ -66,7 +60,7 @@ public:
}
QString path;
- HeaderPathType type = HeaderPathType::Invalid;
+ HeaderPathType type = HeaderPathType::User;
};
inline uint qHash(const HeaderPath &key, uint seed = 0)