summaryrefslogtreecommitdiff
path: root/src/lc-compliance/environment.h
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/lc-compliance/environment.h
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/lc-compliance/environment.h')
-rw-r--r--src/lc-compliance/environment.h8
1 files changed, 3 insertions, 5 deletions
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__ */