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/serialization/serialization_test.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'test/serialization') diff --git a/test/serialization/serialization_test.h b/test/serialization/serialization_test.h index d654c7bf..609f9fdf 100644 --- a/test/serialization/serialization_test.h +++ b/test/serialization/serialization_test.h @@ -4,8 +4,8 @@ * * serialization_test.h - Base class for serialization tests */ -#ifndef __LIBCAMERA_SERIALIZATION_TEST_H__ -#define __LIBCAMERA_SERIALIZATION_TEST_H__ + +#pragma once #include #include @@ -27,5 +27,3 @@ public: static bool equals(const libcamera::ControlList &lhs, const libcamera::ControlList &rhs); }; - -#endif /* __LIBCAMERA_SERIALIZATION_TEST_H__ */ -- cgit v1.2.1