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:11 +0000 |
commit | 0701f756b98b7b4d2e882f2f5aee9d160ebeba72 (patch) | |
tree | 938dc8f18bd265be4a57659af4552e287c50083a /include/libcamera/base/object.h | |
parent | 0a64cf8b7645a90b289f270ad585e8f703350099 (diff) |
libcamera: base: 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 'include/libcamera/base/object.h')
-rw-r--r-- | include/libcamera/base/object.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/libcamera/base/object.h b/include/libcamera/base/object.h index 5c385ab4..25dcbc04 100644 --- a/include/libcamera/base/object.h +++ b/include/libcamera/base/object.h @@ -4,8 +4,8 @@ * * object.h - Base object */ -#ifndef __LIBCAMERA_BASE_OBJECT_H__ -#define __LIBCAMERA_BASE_OBJECT_H__ + +#pragma once #include <list> #include <memory> @@ -67,5 +67,3 @@ private: }; } /* namespace libcamera */ - -#endif /* __LIBCAMERA_BASE_OBJECT_H__ */ |