From 269859799481acec13e35bb6fb97458756e4991a Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: test: 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 --- test/v4l2_videodevice/v4l2_videodevice_test.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/v4l2_videodevice') diff --git a/test/v4l2_videodevice/v4l2_videodevice_test.h b/test/v4l2_videodevice/v4l2_videodevice_test.h index e7762294..d2de1a6d 100644 --- a/test/v4l2_videodevice/v4l2_videodevice_test.h +++ b/test/v4l2_videodevice/v4l2_videodevice_test.h @@ -4,8 +4,8 @@ * * vl42device_test.h - libcamera v4l2device test base class */ -#ifndef __LIBCAMERA_V4L2_DEVICE_TEST_H_ -#define __LIBCAMERA_V4L2_DEVICE_TEST_H_ + +#pragma once #include @@ -41,5 +41,3 @@ protected: libcamera::V4L2VideoDevice *capture_; std::vector> buffers_; }; - -#endif /* __LIBCAMERA_V4L2_DEVICE_TEST_H_ */ -- cgit v1.2.1