From 8bb74a12d0e327a9fcf53310b2c07e2381330a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Thu, 2 Jul 2020 08:28:05 -0300 Subject: [PATCH] AP_Motors: Remove double underscore header guard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The code now uses `#pragma once` and double underscore as a prefix can result in undefined behaviour. Ref: https://eel.is/c++draft/lex.name#3.1 Signed-off-by: Patrick José Pereira --- libraries/AP_Motors/AP_MotorsHeli_Dual.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libraries/AP_Motors/AP_MotorsHeli_Dual.h b/libraries/AP_Motors/AP_MotorsHeli_Dual.h index 2959bb8866..ebc6914e76 100644 --- a/libraries/AP_Motors/AP_MotorsHeli_Dual.h +++ b/libraries/AP_Motors/AP_MotorsHeli_Dual.h @@ -2,8 +2,7 @@ /// @brief Motor control class for dual heli (tandem or transverse) /// @author Fredrik Hedberg -#ifndef __AP_MOTORS_HELI_DUAL_H__ -#define __AP_MOTORS_HELI_DUAL_H__ +#pragma once #include #include @@ -137,5 +136,3 @@ protected: // internal variables float _collective2_mid_pct = 0.0f; // collective mid parameter value for rear swashplate converted to 0 ~ 1 range }; - -#endif // AP_MotorsHeli_Dual