From 80749af698532ca6e4fb85d43d69257cd6605931 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 17 Feb 2016 23:25:52 -0200 Subject: [PATCH] AP_Vehicle: replace header guard with pragma once --- libraries/AP_Vehicle/AP_Vehicle.h | 6 ++---- libraries/AP_Vehicle/AP_Vehicle_Type.h | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index c3cc8b88f3..99b545684f 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -12,8 +12,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef AP_VEHICLE_H -#define AP_VEHICLE_H +#pragma once + /* this header holds a parameter structure for each vehicle type for parameters needed by multiple libraries @@ -54,5 +54,3 @@ public: #include "AP_Vehicle_Type.h" - -#endif // AP_VEHICLE_H diff --git a/libraries/AP_Vehicle/AP_Vehicle_Type.h b/libraries/AP_Vehicle/AP_Vehicle_Type.h index 8b70e7a7e3..ead078e626 100644 --- a/libraries/AP_Vehicle/AP_Vehicle_Type.h +++ b/libraries/AP_Vehicle/AP_Vehicle_Type.h @@ -12,8 +12,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef AP_VEHICLE_TYPE_H -#define AP_VEHICLE_TYPE_H +#pragma once /* define common vehicle build types. Note that the APM_BUILD_DIRECTORY @@ -38,5 +37,3 @@ #else #define APM_BUILD_TYPE(type) ((type) == APM_BUILD_UNKNOWN) #endif - -#endif // AP_VEHICLE_TYPE_H