libcamera: internal: request: 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.

The internal/request.h was missed at the time of the original
conversion. Update it.

Fixes: df131ad088 ("libcamera: internal: Convert to pragma once")
Tested-by: Ashok Sidipotu <ashok.sidipotu@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2023-05-13 16:53:51 +01:00
parent 0ee9339331
commit f36c05c21e

View file

@ -4,8 +4,8 @@
* *
* request.h - Request class private data * request.h - Request class private data
*/ */
#ifndef __LIBCAMERA_INTERNAL_REQUEST_H__
#define __LIBCAMERA_INTERNAL_REQUEST_H__ #pragma once
#include <chrono> #include <chrono>
#include <map> #include <map>
@ -62,5 +62,3 @@ private:
}; };
} /* namespace libcamera */ } /* namespace libcamera */
#endif /* __LIBCAMERA_INTERNAL_REQUEST_H__ */