From 004947ec9f026e877d0d10662496b4a8c484c8b8 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 13 Jan 2022 20:44:10 +0000 Subject: [PATCH] hidl: sensors: 1.0: Use pragma once Change-Id: Icab086b90c016dc4cdaa2bf145145de27d6f5ef7 --- hidl/sensors/1.0/Sensors.h | 6 +----- hidl/sensors/1.0/include/sensors/convert.h | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/hidl/sensors/1.0/Sensors.h b/hidl/sensors/1.0/Sensors.h index 8a24f86..e2ad6bd 100644 --- a/hidl/sensors/1.0/Sensors.h +++ b/hidl/sensors/1.0/Sensors.h @@ -14,9 +14,7 @@ * limitations under the License. */ -#ifndef HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_SENSORS_H_ - -#define HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_SENSORS_H_ +#pragma once #include #include @@ -79,5 +77,3 @@ extern "C" ISensors* HIDL_FETCH_ISensors(const char* name); } // namespace sensors } // namespace hardware } // namespace android - -#endif // HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_SENSORS_H_ diff --git a/hidl/sensors/1.0/include/sensors/convert.h b/hidl/sensors/1.0/include/sensors/convert.h index 25758a4..82829d8 100644 --- a/hidl/sensors/1.0/include/sensors/convert.h +++ b/hidl/sensors/1.0/include/sensors/convert.h @@ -14,9 +14,7 @@ * limitations under the License. */ -#ifndef HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_INCLUDE_CONVERT_H_ - -#define HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_INCLUDE_CONVERT_H_ +#pragma once #include #include @@ -41,5 +39,3 @@ int convertFromRateLevel(RateLevel rate); } // namespace sensors } // namespace hardware } // namespace android - -#endif // HARDWARE_INTERFACES_SENSORS_V1_0_DEFAULT_INCLUDE_CONVERT_H_