aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/kitmanager.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-02 18:26:51 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-03 08:29:08 +0000
commitf4296d7504e87d291232bc13caa99a439d2393ab (patch)
tree66892ae3ded5333a7036401031effaf228921d3a /src/plugins/projectexplorer/kitmanager.h
parent6a3e687d140cad3dec006b2d5fa8982d4b10f31c (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/kitmanager.h')
-rw-r--r--src/plugins/projectexplorer/kitmanager.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/plugins/projectexplorer/kitmanager.h b/src/plugins/projectexplorer/kitmanager.h
index 9d9779ff9a..63d5396b40 100644
--- a/src/plugins/projectexplorer/kitmanager.h
+++ b/src/plugins/projectexplorer/kitmanager.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef KITMANAGER_H
-#define KITMANAGER_H
+#pragma once
#include "projectexplorer_export.h"
@@ -109,8 +108,9 @@ class PROJECTEXPLORER_EXPORT KitMatcher
{
public:
typedef std::function<bool(const Kit *)> Matcher;
- KitMatcher(const Matcher &m) : m_matcher(m) {}
- KitMatcher() {}
+
+ explicit KitMatcher(const Matcher &m) : m_matcher(m) {}
+ KitMatcher() = default;
bool isValid() const { return !!m_matcher; }
bool matches(const Kit *kit) const { return m_matcher(kit); }
@@ -125,7 +125,7 @@ class PROJECTEXPLORER_EXPORT KitManager : public QObject
public:
static KitManager *instance();
- ~KitManager();
+ ~KitManager() override;
static QList<Kit *> kits();
static QList<Kit *> matchingKits(const KitMatcher &matcher);
@@ -176,8 +176,7 @@ private:
class KitList
{
public:
- KitList()
- { }
+ KitList() { }
Core::Id defaultKit;
QList<Kit *> kits;
};
@@ -193,5 +192,3 @@ private:
};
} // namespace ProjectExplorer
-
-#endif // KITMANAGER_H