From af60569cbc16e3c0f96e6a7a9602cf80318a9a41 Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Tue, 5 Oct 2021 16:31:13 +0900 Subject: lc-compliance: 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 lc-compliance. Signed-off-by: Hirokazu Honda Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/lc-compliance/environment.cpp | 2 ++ src/lc-compliance/environment.h | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lc-compliance') diff --git a/src/lc-compliance/environment.cpp b/src/lc-compliance/environment.cpp index 9e24b5e3..5eb3775f 100644 --- a/src/lc-compliance/environment.cpp +++ b/src/lc-compliance/environment.cpp @@ -7,6 +7,8 @@ #include "environment.h" +using namespace libcamera; + Environment *Environment::get() { static Environment instance; diff --git a/src/lc-compliance/environment.h b/src/lc-compliance/environment.h index 1c7d9a55..ba308732 100644 --- a/src/lc-compliance/environment.h +++ b/src/lc-compliance/environment.h @@ -9,23 +9,21 @@ #include -using namespace libcamera; - class Environment { public: static Environment *get(); - void setup(CameraManager *cm, std::string cameraId); + void setup(libcamera::CameraManager *cm, std::string cameraId); const std::string &cameraId() const { return cameraId_; } - CameraManager *cm() const { return cm_; } + libcamera::CameraManager *cm() const { return cm_; } private: Environment() = default; std::string cameraId_; - CameraManager *cm_; + libcamera::CameraManager *cm_; }; #endif /* __LC_COMPLIANCE_ENVIRONMENT_H__ */ -- cgit v1.2.1