From 4f32b0815ee784ba2d91987c92f5d327b29c21bf Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 23 Nov 2021 17:23:07 +0000 Subject: qcam: 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/qcam/viewfinder_gl.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/qcam/viewfinder_gl.h') diff --git a/src/qcam/viewfinder_gl.h b/src/qcam/viewfinder_gl.h index 37b1ddd0..0a9275ba 100644 --- a/src/qcam/viewfinder_gl.h +++ b/src/qcam/viewfinder_gl.h @@ -5,8 +5,8 @@ * viewfinder_GL.h - OpenGL Viewfinder for rendering by OpenGL shader * */ -#ifndef __VIEWFINDER_GL_H__ -#define __VIEWFINDER_GL_H__ + +#pragma once #include #include @@ -103,5 +103,3 @@ private: QMutex mutex_; /* Prevent concurrent access to image_ */ }; - -#endif /* __VIEWFINDER_GL_H__ */ -- cgit v1.2.1