diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-23 17:23:07 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-11-24 12:18:33 +0000 |
commit | 2c72ca70e2918b6bd919bcb2fa5b0fdb5f6d5165 (patch) | |
tree | ad513792336343ef79be43097764dbf82c9c2e4d /src/cam/camera_session.h | |
parent | 0382fcb22b40e9f8b94b9ea3fc41716b011d5162 (diff) |
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 <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Diffstat (limited to 'src/cam/camera_session.h')
-rw-r--r-- | src/cam/camera_session.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cam/camera_session.h b/src/cam/camera_session.h index a7f92d61..bf966bd1 100644 --- a/src/cam/camera_session.h +++ b/src/cam/camera_session.h @@ -4,8 +4,8 @@ * * camera_session.h - Camera capture session */ -#ifndef __CAM_CAMERA_SESSION_H__ -#define __CAM_CAMERA_SESSION_H__ + +#pragma once #include <memory> #include <stdint.h> @@ -74,5 +74,3 @@ private: std::unique_ptr<libcamera::FrameBufferAllocator> allocator_; std::vector<std::unique_ptr<libcamera::Request>> requests_; }; - -#endif /* __CAM_CAMERA_SESSION_H__ */ |