From f1d94a9c683ba11d4b7d098ab81ee0b9a5c8cd2e Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: ipa: libipa: Convert to pragma once Remove the verbose #ifndef/#define/#endif pattern for maintaining header idempotency, and replace it with a simple #pragma once. This simplifies the headers, and prevents redundant changes when header files get moved. Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Jean-Michel Hautbois --- src/ipa/libipa/camera_sensor_helper.h | 6 ++---- src/ipa/libipa/histogram.h | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src/ipa/libipa') diff --git a/src/ipa/libipa/camera_sensor_helper.h b/src/ipa/libipa/camera_sensor_helper.h index a7e4ab3b..26adfcb5 100644 --- a/src/ipa/libipa/camera_sensor_helper.h +++ b/src/ipa/libipa/camera_sensor_helper.h @@ -4,8 +4,8 @@ * * camera_sensor_helper.h - Helper class that performs sensor-specific parameter computations */ -#ifndef __LIBCAMERA_IPA_LIBIPA_CAMERA_SENSOR_HELPER_H__ -#define __LIBCAMERA_IPA_LIBIPA_CAMERA_SENSOR_HELPER_H__ + +#pragma once #include @@ -85,5 +85,3 @@ static helper##Factory global_##helper##Factory; } /* namespace ipa */ } /* namespace libcamera */ - -#endif /* __LIBCAMERA_IPA_LIBIPA_CAMERA_SENSOR_HELPER_H__ */ diff --git a/src/ipa/libipa/histogram.h b/src/ipa/libipa/histogram.h index c2761cb2..c40a366b 100644 --- a/src/ipa/libipa/histogram.h +++ b/src/ipa/libipa/histogram.h @@ -4,8 +4,8 @@ * * histogram.h - histogram calculation interface */ -#ifndef __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__ -#define __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__ + +#pragma once #include #include @@ -36,5 +36,3 @@ private: } /* namespace ipa */ } /* namespace libcamera */ - -#endif /* __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__ */ -- cgit v1.2.1