From 1526650fc781514200fed74bff0856b6fdbae850 Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Tue, 5 Oct 2021 16:31:14 +0900 Subject: test: Remove using namespace in header files "using namespace" in a header file propagates the namespace to the files including the header file. So it should be avoided. This removes "using namespace" in header files in test. Signed-off-by: Hirokazu Honda Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- test/libtest/buffer_source.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'test/libtest/buffer_source.h') diff --git a/test/libtest/buffer_source.h b/test/libtest/buffer_source.h index 14b4770e..84e2fa8f 100644 --- a/test/libtest/buffer_source.h +++ b/test/libtest/buffer_source.h @@ -12,20 +12,18 @@ #include "libcamera/internal/media_device.h" #include "libcamera/internal/v4l2_videodevice.h" -using namespace libcamera; - class BufferSource { public: BufferSource(); ~BufferSource(); - int allocate(const StreamConfiguration &config); - const std::vector> &buffers(); + int allocate(const libcamera::StreamConfiguration &config); + const std::vector> &buffers(); private: - std::shared_ptr media_; - std::vector> buffers_; + std::shared_ptr media_; + std::vector> buffers_; }; #endif /* __LIBCAMERA_BUFFER_SOURCE_TEST_H__ */ -- cgit v1.2.1