AP_RPM: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:46 -02:00 committed by Andrew Tridgell
parent 0332cde374
commit 109f807260
4 changed files with 4 additions and 17 deletions

View File

@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __RPM_H__
#define __RPM_H__
#pragma once
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
@ -97,4 +95,3 @@ private:
void detect_instance(uint8_t instance);
void update_instance(uint8_t instance);
};
#endif // __RPM_H__

View File

@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __AP_RPM_BACKEND_H__
#define __AP_RPM_BACKEND_H__
#pragma once
#include <AP_Common/AP_Common.h>
#include <AP_HAL/AP_HAL.h>
@ -39,4 +37,3 @@ protected:
AP_RPM &ap_rpm;
AP_RPM::RPM_State &state;
};
#endif // __AP_RPM_BACKEND_H__

View File

@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AP_RPM_PX4_PWM_H
#define AP_RPM_PX4_PWM_H
#pragma once
#include "AP_RPM.h"
#include "RPM_Backend.h"
@ -41,5 +39,3 @@ private:
ModeFilterFloat_Size5 signal_quality_filter {3};
};
#endif // AP_RPM_PX4_PWM_H

View File

@ -13,9 +13,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AP_RPM_SITL_H
#define AP_RPM_SITL_H
#pragma once
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
@ -37,4 +35,3 @@ private:
};
#endif // CONFIG_HAL_BOARD
#endif // AP_RPM_SITL_H