test: 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
4f32b0815e
commit
2698597994
8 changed files with 14 additions and 32 deletions
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* buffer_source.h - libcamera camera test helper to create FrameBuffers
|
||||
*/
|
||||
#ifndef __LIBCAMERA_BUFFER_SOURCE_TEST_H__
|
||||
#define __LIBCAMERA_BUFFER_SOURCE_TEST_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <libcamera/stream.h>
|
||||
|
||||
|
@ -25,5 +25,3 @@ private:
|
|||
std::shared_ptr<libcamera::MediaDevice> media_;
|
||||
std::vector<std::unique_ptr<libcamera::FrameBuffer>> buffers_;
|
||||
};
|
||||
|
||||
#endif /* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* camera_test.h - libcamera camera test base class
|
||||
*/
|
||||
#ifndef __LIBCAMERA_CAMERA_TEST_H__
|
||||
#define __LIBCAMERA_CAMERA_TEST_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -23,5 +23,3 @@ protected:
|
|||
std::shared_ptr<libcamera::Camera> camera_;
|
||||
int status_;
|
||||
};
|
||||
|
||||
#endif /* __LIBCAMERA_CAMERA_TEST_H__ */
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*
|
||||
* test.h - libcamera test base class
|
||||
*/
|
||||
#ifndef __TEST_TEST_H__
|
||||
#define __TEST_TEST_H__
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <sstream>
|
||||
|
||||
|
@ -34,5 +34,3 @@ int main([[maybe_unused]] int argc, [[maybe_unused]] char *argv[]) \
|
|||
{ \
|
||||
return klass().execute(); \
|
||||
}
|
||||
|
||||
#endif /* __TEST_TEST_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue