diff options
author | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-02 18:26:51 +0100 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@theqtcompany.com> | 2016-02-03 08:29:08 +0000 |
commit | f4296d7504e87d291232bc13caa99a439d2393ab (patch) | |
tree | 66892ae3ded5333a7036401031effaf228921d3a /src/plugins/projectexplorer/headerpath.h | |
parent | 6a3e687d140cad3dec006b2d5fa8982d4b10f31c (diff) |
ProjectExplorer: Modernize
* Use override where appropriate
* Use pragma once
* Make more constructors explicit
Change-Id: I2865fe10f288e3de570826058e43b70a0cb4ee37
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/projectexplorer/headerpath.h')
-rw-r--r-- | src/plugins/projectexplorer/headerpath.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/plugins/projectexplorer/headerpath.h b/src/plugins/projectexplorer/headerpath.h index 82129727e1..37200239a0 100644 --- a/src/plugins/projectexplorer/headerpath.h +++ b/src/plugins/projectexplorer/headerpath.h @@ -23,9 +23,7 @@ ** ****************************************************************************/ -#ifndef HEADERPATH_H -#define HEADERPATH_H - +#pragma once #include <QString> #include "projectexplorer_export.h" @@ -41,12 +39,10 @@ public: FrameworkHeaderPath }; - HeaderPath() - : m_kind(GlobalHeaderPath) + HeaderPath() : m_kind(GlobalHeaderPath) { } - HeaderPath(const QString &path, Kind kind) - : m_path(path), m_kind(kind) + HeaderPath(const QString &path, Kind kind) : m_path(path), m_kind(kind) { } QString path() const { return m_path; } @@ -54,8 +50,7 @@ public: bool operator==(const HeaderPath &other) const { - return m_kind == other.m_kind - && m_path == other.m_path; + return m_kind == other.m_kind && m_path == other.m_path; } private: @@ -64,5 +59,3 @@ private: }; } // namespace ProjectExplorer - -#endif // HEADERPATH_H |