aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/environmentaspectwidget.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/environmentaspectwidget.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/environmentaspectwidget.h')
-rw-r--r--src/plugins/projectexplorer/environmentaspectwidget.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/projectexplorer/environmentaspectwidget.h b/src/plugins/projectexplorer/environmentaspectwidget.h
index d81a6c4c76d..c983373c3df 100644
--- a/src/plugins/projectexplorer/environmentaspectwidget.h
+++ b/src/plugins/projectexplorer/environmentaspectwidget.h
@@ -23,8 +23,7 @@
**
****************************************************************************/
-#ifndef ENVIRONMENTASPECTWIDGET_H
-#define ENVIRONMENTASPECTWIDGET_H
+#pragma once
#include "projectexplorer_export.h"
@@ -51,9 +50,9 @@ class PROJECTEXPLORER_EXPORT EnvironmentAspectWidget : public RunConfigWidget
Q_OBJECT
public:
- EnvironmentAspectWidget(EnvironmentAspect *aspect, QWidget *additionalWidget = 0);
+ explicit EnvironmentAspectWidget(EnvironmentAspect *aspect, QWidget *additionalWidget = 0);
- QString displayName() const;
+ QString displayName() const override;
virtual EnvironmentAspect *aspect() const;
QWidget *additionalWidget() const;
@@ -75,5 +74,3 @@ private:
};
} // namespace ProjectExplorer
-
-#endif // ENVIRONMENTASPECTWIDGET_H