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:53 +0000 |
commit | b3ff91a57d3ebd786798d6cef74e29a247e8d001 (patch) | |
tree | ad7e78c4bac5cdb6cfd352e6cf5f8b06e72b59b1 /src/lc-compliance/environment.h | |
parent | f1d94a9c683ba11d4b7d098ab81ee0b9a5c8cd2e (diff) |
lc-compliance: 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/lc-compliance/environment.h')
-rw-r--r-- | src/lc-compliance/environment.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lc-compliance/environment.h b/src/lc-compliance/environment.h index ba308732..0debbcce 100644 --- a/src/lc-compliance/environment.h +++ b/src/lc-compliance/environment.h @@ -4,8 +4,8 @@ * * environment.h - Common environment for tests */ -#ifndef __LC_COMPLIANCE_ENVIRONMENT_H__ -#define __LC_COMPLIANCE_ENVIRONMENT_H__ + +#pragma once #include <libcamera/libcamera.h> @@ -25,5 +25,3 @@ private: std::string cameraId_; libcamera::CameraManager *cm_; }; - -#endif /* __LC_COMPLIANCE_ENVIRONMENT_H__ */ |