summaryrefslogtreecommitdiff
path: root/test/gstreamer
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-23 17:23:07 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2021-11-24 12:19:00 +0000
commit269859799481acec13e35bb6fb97458756e4991a (patch)
treecb3098036089fa0a9eefb6a9f9705031e3bc2eb3 /test/gstreamer
parent4f32b0815ee784ba2d91987c92f5d327b29c21bf (diff)
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 <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'test/gstreamer')
-rw-r--r--test/gstreamer/gstreamer_test.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/gstreamer/gstreamer_test.h b/test/gstreamer/gstreamer_test.h
index ccfe0b92..9869d252 100644
--- a/test/gstreamer/gstreamer_test.h
+++ b/test/gstreamer/gstreamer_test.h
@@ -5,8 +5,7 @@
* gstreamer_test.cpp - GStreamer test base class
*/
-#ifndef __LIBCAMERA_GSTREAMER_TEST_H__
-#define __LIBCAMERA_GSTREAMER_TEST_H__
+#pragma once
#include <iostream>
#include <unistd.h>
@@ -33,5 +32,3 @@ protected:
GstElement *libcameraSrc_;
int status_;
};
-
-#endif /* __LIBCAMERA_GSTREAMER_TEST_H__ */