summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-10-05 16:31:13 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-15 05:05:41 +0300
commitaf60569cbc16e3c0f96e6a7a9602cf80318a9a41 (patch)
tree769183190ecea108a488f58c6c59ad3ebd747fdb /src
parent4689b165720e0540bb6619323d03d7349934b20c (diff)
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 <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/lc-compliance/environment.cpp2
-rw-r--r--src/lc-compliance/environment.h8
2 files changed, 5 insertions, 5 deletions
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 <libcamera/libcamera.h>
-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__ */