diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-23 17:23:07 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-24 12:18:49 +0000 |
commit | f1d94a9c683ba11d4b7d098ab81ee0b9a5c8cd2e (patch) | |
tree | 00763835212cf7333eaa6362bdcbd59b6ec1373d /src/ipa/libipa/histogram.h | |
parent | f8a797102d06805db434a7bb0bf8c501b1def04d (diff) |
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 <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/histogram.h')
-rw-r--r-- | src/ipa/libipa/histogram.h | 6 |
1 files changed, 2 insertions, 4 deletions
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 <assert.h> #include <limits.h> @@ -36,5 +36,3 @@ private: } /* namespace ipa */ } /* namespace libcamera */ - -#endif /* __LIBCAMERA_IPA_LIBIPA_HISTOGRAM_H__ */ |