From 09d926fa11f01dcc5b3fe7003f2332fe787aa73f Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 17 Feb 2016 23:25:41 -0200 Subject: [PATCH] AP_Notify: replace header guard with pragma once --- libraries/AP_Notify/NavioLED.h | 6 +----- libraries/AP_Notify/NotifyDevice.h | 5 +---- libraries/AP_Notify/RGBLed.h | 6 +----- 3 files changed, 3 insertions(+), 14 deletions(-) diff --git a/libraries/AP_Notify/NavioLED.h b/libraries/AP_Notify/NavioLED.h index 027b9557d2..495a8f3bf6 100644 --- a/libraries/AP_Notify/NavioLED.h +++ b/libraries/AP_Notify/NavioLED.h @@ -17,9 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ - -#ifndef __NAVIO_LED_H__ -#define __NAVIO_LED_H__ +#pragma once #include "RGBLed.h" @@ -27,5 +25,3 @@ class NavioLED: public RGBLed { public: NavioLED(); }; - -#endif diff --git a/libraries/AP_Notify/NotifyDevice.h b/libraries/AP_Notify/NotifyDevice.h index 87b92b76ce..534ed8a7f3 100644 --- a/libraries/AP_Notify/NotifyDevice.h +++ b/libraries/AP_Notify/NotifyDevice.h @@ -1,5 +1,4 @@ -#ifndef __NOTIFYDEVICE_H__ -#define __NOTIFYDEVICE_H__ +#pragma once #include #include @@ -20,5 +19,3 @@ public: // this pointer is used to read the parameters relative to devices const AP_Notify *pNotify; }; - -#endif diff --git a/libraries/AP_Notify/RGBLed.h b/libraries/AP_Notify/RGBLed.h index 0c4116e716..5879a12fd3 100644 --- a/libraries/AP_Notify/RGBLed.h +++ b/libraries/AP_Notify/RGBLed.h @@ -17,9 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ - -#ifndef __RGBLED_H__ -#define __RGBLED_H__ +#pragma once #include #include "NotifyDevice.h" @@ -59,5 +57,3 @@ protected: private: virtual void update_colours(); }; - -#endif //__RGBLED_H__