diff --git a/hidl/thermal/Thermal.h b/hidl/thermal/Thermal.h index 317936f5..de17b17f 100644 --- a/hidl/thermal/Thermal.h +++ b/hidl/thermal/Thermal.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2018 The Android Open Source Project + * 2022 The LineageOS Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -13,8 +14,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H -#define ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H + +#pragma once #include #include @@ -91,5 +92,3 @@ class Thermal : public IThermal { } // namespace thermal } // namespace hardware } // namespace android - -#endif // ANDROID_HARDWARE_THERMAL_V2_0_CROSSHATCH_THERMAL_H diff --git a/hidl/thermal/thermal-helper.h b/hidl/thermal/thermal-helper.h index 5eb389ee..52264942 100644 --- a/hidl/thermal/thermal-helper.h +++ b/hidl/thermal/thermal-helper.h @@ -27,8 +27,7 @@ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef THERMAL_THERMAL_HELPER_H__ -#define THERMAL_THERMAL_HELPER_H__ +#pragma once #include #include @@ -136,5 +135,3 @@ class ThermalHelper { } // namespace thermal } // namespace hardware } // namespace android - -#endif // THERMAL_THERMAL_HELPER_H__ diff --git a/hidl/thermal/utils/config_parser.h b/hidl/thermal/utils/config_parser.h index fe43594f..0dba9cfe 100644 --- a/hidl/thermal/utils/config_parser.h +++ b/hidl/thermal/utils/config_parser.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef THERMAL_UTILS_CONFIG_PARSER_H__ -#define THERMAL_UTILS_CONFIG_PARSER_H__ +#pragma once #include #include @@ -55,5 +54,3 @@ std::map ParseCoolingDevice(std::string_view config_pa } // namespace thermal } // namespace hardware } // namespace android - -#endif // THERMAL_UTILS_CONFIG_PARSER_H__ diff --git a/hidl/thermal/utils/thermal_files.h b/hidl/thermal/utils/thermal_files.h index d2c86dd5..42e3eb1a 100644 --- a/hidl/thermal/utils/thermal_files.h +++ b/hidl/thermal/utils/thermal_files.h @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef THERMAL_UTILS_THERMAL_FILES_H_ -#define THERMAL_UTILS_THERMAL_FILES_H_ +#pragma once #include #include @@ -51,5 +50,3 @@ class ThermalFiles { } // namespace thermal } // namespace hardware } // namespace android - -#endif // THERMAL_UTILS_THERMAL_FILES_H_ diff --git a/hidl/thermal/utils/thermal_watcher.h b/hidl/thermal/utils/thermal_watcher.h index f8cd0449..ddfb46c9 100644 --- a/hidl/thermal/utils/thermal_watcher.h +++ b/hidl/thermal/utils/thermal_watcher.h @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#ifndef THERMAL_UTILS_THERMAL_WATCHER_H_ -#define THERMAL_UTILS_THERMAL_WATCHER_H_ + +#pragma once #include #include @@ -101,5 +101,3 @@ class ThermalWatcher : public ::android::Thread { } // namespace thermal } // namespace hardware } // namespace android - -#endif // THERMAL_UTILS_THERMAL_WATCHER_H_