From 0259f76bbe83458b4dec7e9922b49bf5d93fd693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Sat, 27 Oct 2018 11:42:24 -0300 Subject: [PATCH] uas: 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/uas/FileManager.h | 6 ++---- src/uas/UAS.h | 6 ++---- src/uas/UASInterface.h | 6 ++---- src/uas/UASMessageHandler.h | 6 ++---- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/uas/FileManager.h b/src/uas/FileManager.h index 5c95a9808..d9bab30ab 100644 --- a/src/uas/FileManager.h +++ b/src/uas/FileManager.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 FILEMANAGER_H -#define FILEMANAGER_H +#pragma once #include #include @@ -248,4 +247,3 @@ private: friend class MockLinkFileServer; }; -#endif // FileManager_H diff --git a/src/uas/UAS.h b/src/uas/UAS.h index 5cba2f0b8..33161c240 100644 --- a/src/uas/UAS.h +++ b/src/uas/UAS.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 @@ // UASInterface, UAS.h/cc are deprecated. All new functionality should go into Vehicle.h/cc // -#ifndef _UAS_H_ -#define _UAS_H_ +#pragma once #include "UASInterface.h" #include @@ -328,4 +327,3 @@ private: }; -#endif // _UAS_H_ diff --git a/src/uas/UASInterface.h b/src/uas/UASInterface.h index 87fd501e9..f47b3355d 100644 --- a/src/uas/UASInterface.h +++ b/src/uas/UASInterface.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 @@ // UASInterface, UAS.h/cc are deprecated. All new functionality should go into Vehicle.h/cc // -#ifndef _UASINTERFACE_H_ -#define _UASINTERFACE_H_ +#pragma once #include #include @@ -192,4 +191,3 @@ signals: Q_DECLARE_INTERFACE(UASInterface, "org.qgroundcontrol/1.0") -#endif // _UASINTERFACE_H_ diff --git a/src/uas/UASMessageHandler.h b/src/uas/UASMessageHandler.h index 854a60bc2..ae525741b 100644 --- a/src/uas/UASMessageHandler.h +++ b/src/uas/UASMessageHandler.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. @@ -14,8 +14,7 @@ * @author Gus Grubba */ -#ifndef QGCMESSAGEHANDLER_H -#define QGCMESSAGEHANDLER_H +#pragma once #include #include @@ -158,4 +157,3 @@ private: MultiVehicleManager* _multiVehicleManager; }; -#endif // QGCMESSAGEHANDLER_H -- 2.22.0