From 2c72ca70e2918b6bd919bcb2fa5b0fdb5f6d5165 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: cam: 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/cam/stream_options.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cam/stream_options.h') diff --git a/src/cam/stream_options.h b/src/cam/stream_options.h index fbbc13a3..d235b77f 100644 --- a/src/cam/stream_options.h +++ b/src/cam/stream_options.h @@ -4,8 +4,8 @@ * * stream_options.h - Helper to parse options for streams */ -#ifndef __CAM_STREAM_OPTIONS_H__ -#define __CAM_STREAM_OPTIONS_H__ + +#pragma once #include @@ -26,5 +26,3 @@ private: static bool parseRole(libcamera::StreamRole *role, const KeyValueParser::Options &options); }; - -#endif /* __CAM_STREAM_OPTIONS_H__ */ -- cgit v1.2.1