From 1e3da864632f61fcc72fe39839d9da45e91434d1 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 13 Jan 2022 20:43:09 +0000 Subject: [PATCH] hidl: livedisplay: Use pragma once directive everywhere Change-Id: Ic5ec76210a7d8697945561b2d150f0c1f778dc5c --- hidl/livedisplay/AdaptiveBacklight.h | 7 ++----- hidl/livedisplay/DisplayColorCalibration.h | 7 ++----- hidl/livedisplay/DisplayColorCalibrationExynos.h | 7 ++----- hidl/livedisplay/DisplayModes.h | 7 ++----- hidl/livedisplay/ReadingEnhancement.h | 7 ++----- hidl/livedisplay/SunlightEnhancement.h | 7 ++----- hidl/livedisplay/SunlightEnhancementExynos.h | 7 ++----- 7 files changed, 14 insertions(+), 35 deletions(-) diff --git a/hidl/livedisplay/AdaptiveBacklight.h b/hidl/livedisplay/AdaptiveBacklight.h index 793f101..194d3d5 100644 --- a/hidl/livedisplay/AdaptiveBacklight.h +++ b/hidl/livedisplay/AdaptiveBacklight.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H +#pragma once #include #include @@ -51,5 +50,3 @@ class AdaptiveBacklight : public IAdaptiveBacklight { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H diff --git a/hidl/livedisplay/DisplayColorCalibration.h b/hidl/livedisplay/DisplayColorCalibration.h index b22f988..da5f18e 100644 --- a/hidl/livedisplay/DisplayColorCalibration.h +++ b/hidl/livedisplay/DisplayColorCalibration.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H +#pragma once #include @@ -47,5 +46,3 @@ class DisplayColorCalibration : public IDisplayColorCalibration { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H diff --git a/hidl/livedisplay/DisplayColorCalibrationExynos.h b/hidl/livedisplay/DisplayColorCalibrationExynos.h index 81c1827..40df2ad 100644 --- a/hidl/livedisplay/DisplayColorCalibrationExynos.h +++ b/hidl/livedisplay/DisplayColorCalibrationExynos.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATIONEXYNOS_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATIONEXYNOS_H +#pragma once #include #include @@ -53,5 +52,3 @@ class DisplayColorCalibrationExynos : public IDisplayColorCalibration { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATIONEXYNOS_H diff --git a/hidl/livedisplay/DisplayModes.h b/hidl/livedisplay/DisplayModes.h index 149edf3..5fc29ec 100644 --- a/hidl/livedisplay/DisplayModes.h +++ b/hidl/livedisplay/DisplayModes.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H +#pragma once #include #include @@ -57,5 +56,3 @@ class DisplayModes : public IDisplayModes { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H diff --git a/hidl/livedisplay/ReadingEnhancement.h b/hidl/livedisplay/ReadingEnhancement.h index 5b71669..d5432f3 100644 --- a/hidl/livedisplay/ReadingEnhancement.h +++ b/hidl/livedisplay/ReadingEnhancement.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H +#pragma once #include #include @@ -51,5 +50,3 @@ class ReadingEnhancement : public IReadingEnhancement { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H diff --git a/hidl/livedisplay/SunlightEnhancement.h b/hidl/livedisplay/SunlightEnhancement.h index 44b34b9..ac9110f 100644 --- a/hidl/livedisplay/SunlightEnhancement.h +++ b/hidl/livedisplay/SunlightEnhancement.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H +#pragma once #include #include @@ -53,5 +52,3 @@ class SunlightEnhancement : public ISunlightEnhancement { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H diff --git a/hidl/livedisplay/SunlightEnhancementExynos.h b/hidl/livedisplay/SunlightEnhancementExynos.h index 4b34861..7e69a15 100644 --- a/hidl/livedisplay/SunlightEnhancementExynos.h +++ b/hidl/livedisplay/SunlightEnhancementExynos.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2019 The LineageOS Project + * Copyright (C) 2019-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. @@ -14,8 +14,7 @@ * limitations under the License. */ -#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENTEXYNOS_H -#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENTEXYNOS_H +#pragma once #include #include @@ -51,5 +50,3 @@ class SunlightEnhancementExynos : public ISunlightEnhancement { } // namespace livedisplay } // namespace lineage } // namespace vendor - -#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENTEXYNOS_H -- 2.20.1