mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
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>
This commit is contained in:
parent
f1d94a9c68
commit
b3ff91a57d
2 changed files with 4 additions and 8 deletions
|
@ -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__ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* simple_capture.h - Simple capture helper
|
||||
*/
|
||||
#ifndef __LC_COMPLIANCE_SIMPLE_CAPTURE_H__
|
||||
#define __LC_COMPLIANCE_SIMPLE_CAPTURE_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -63,5 +63,3 @@ private:
|
|||
unsigned int captureCount_;
|
||||
unsigned int captureLimit_;
|
||||
};
|
||||
|
||||
#endif /* __LC_COMPLIANCE_SIMPLE_CAPTURE_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue