From f054d357c76e454b420b9eb8599658aa191abedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sat, 27 Oct 2018 11:46:27 -0300 Subject: [PATCH] ViewWidgets: Move to pragma once MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- src/ViewWidgets/CustomCommandWidget.h | 6 ++---- src/ViewWidgets/CustomCommandWidgetController.h | 6 ++---- src/ViewWidgets/ViewWidgetController.h | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/src/ViewWidgets/CustomCommandWidget.h b/src/ViewWidgets/CustomCommandWidget.h index 0ae481084..27626ad67 100644 --- a/src/ViewWidgets/CustomCommandWidget.h +++ b/src/ViewWidgets/CustomCommandWidget.h @@ -1,6 +1,6 @@ /**************************************************************************** * - * (c) 2009-2016 QGROUNDCONTROL PROJECT + * (c) 2009-2018 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. @@ -11,8 +11,7 @@ /// @file /// @author Don Gagne -#ifndef CustomCommandWidget_H -#define CustomCommandWidget_H +#pragma once #include "QGCQmlWidgetHolder.h" @@ -24,4 +23,3 @@ public: CustomCommandWidget(const QString& title, QAction* action, QWidget *parent = 0); }; -#endif diff --git a/src/ViewWidgets/CustomCommandWidgetController.h b/src/ViewWidgets/CustomCommandWidgetController.h index c507c70c1..afcbdb8b0 100644 --- a/src/ViewWidgets/CustomCommandWidgetController.h +++ b/src/ViewWidgets/CustomCommandWidgetController.h @@ -1,6 +1,6 @@ /**************************************************************************** * - * (c) 2009-2016 QGROUNDCONTROL PROJECT + * (c) 2009-2018 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. @@ -8,8 +8,7 @@ ****************************************************************************/ -#ifndef CustomCommandWidgetController_H -#define CustomCommandWidgetController_H +#pragma once #include @@ -38,4 +37,3 @@ private: static const char* _settingsKey; }; -#endif diff --git a/src/ViewWidgets/ViewWidgetController.h b/src/ViewWidgets/ViewWidgetController.h index 332123713..5c5c4cc7a 100644 --- a/src/ViewWidgets/ViewWidgetController.h +++ b/src/ViewWidgets/ViewWidgetController.h @@ -1,6 +1,6 @@ /**************************************************************************** * - * (c) 2009-2016 QGROUNDCONTROL PROJECT + * (c) 2009-2018 QGROUNDCONTROL PROJECT * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. @@ -8,8 +8,7 @@ ****************************************************************************/ -#ifndef VIEWWIDGETCONTROLLER_H -#define VIEWWIDGETCONTROLLER_H +#pragma once #include @@ -38,4 +37,3 @@ private: UASInterface* _uas; }; -#endif \ No newline at end of file -- 2.22.0