From e01d49ff53afbf5a73e2092aedb68af957e24063 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 17 Feb 2016 23:26:00 -0200 Subject: [PATCH] ArduPlane: replace header guard with pragma once --- ArduPlane/Parameters.h | 6 +----- ArduPlane/Plane.h | 6 +----- ArduPlane/config.h | 1 + ArduPlane/defines.h | 6 +----- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/ArduPlane/Parameters.h b/ArduPlane/Parameters.h index 58110be632..fafbb03241 100644 --- a/ArduPlane/Parameters.h +++ b/ArduPlane/Parameters.h @@ -1,7 +1,5 @@ // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- - -#ifndef PARAMETERS_H -#define PARAMETERS_H +#pragma once #include @@ -552,5 +550,3 @@ public: }; extern const AP_Param::Info var_info[]; - -#endif // PARAMETERS_H diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 083f2d25cd..0589cfcee5 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -1,7 +1,5 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- - -#ifndef _PLANE_H -#define _PLANE_H +#pragma once #define THISFIRMWARE "ArduPlane V3.5.0" #define FIRMWARE_VERSION 3,5,0,FIRMWARE_VERSION_TYPE_OFFICIAL @@ -1067,5 +1065,3 @@ extern Plane plane; using AP_HAL::millis; using AP_HAL::micros; - -#endif // _PLANE_H_ diff --git a/ArduPlane/config.h b/ArduPlane/config.h index 6ad12e7f5b..890738085d 100644 --- a/ArduPlane/config.h +++ b/ArduPlane/config.h @@ -19,6 +19,7 @@ // // - Try to keep this file organised in the same order as APM_Config.h.example // +#pragma once #include "defines.h" diff --git a/ArduPlane/defines.h b/ArduPlane/defines.h index 16a16b7b02..04faf3f394 100644 --- a/ArduPlane/defines.h +++ b/ArduPlane/defines.h @@ -1,7 +1,5 @@ // -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- - -#ifndef _DEFINES_H -#define _DEFINES_H +#pragma once // Internal defines, don't edit and expect things to work // ------------------------------------------------------- @@ -207,5 +205,3 @@ enum { USE_REVERSE_THRUST_FBWB = (1<<9), USE_REVERSE_THRUST_GUIDED = (1<<10), }; - -#endif // _DEFINES_H