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>
This commit is contained in:
parent
4689b16572
commit
af60569cbc
2 changed files with 5 additions and 5 deletions
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
#include "environment.h"
|
#include "environment.h"
|
||||||
|
|
||||||
|
using namespace libcamera;
|
||||||
|
|
||||||
Environment *Environment::get()
|
Environment *Environment::get()
|
||||||
{
|
{
|
||||||
static Environment instance;
|
static Environment instance;
|
||||||
|
|
|
@ -9,23 +9,21 @@
|
||||||
|
|
||||||
#include <libcamera/libcamera.h>
|
#include <libcamera/libcamera.h>
|
||||||
|
|
||||||
using namespace libcamera;
|
|
||||||
|
|
||||||
class Environment
|
class Environment
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static Environment *get();
|
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_; }
|
const std::string &cameraId() const { return cameraId_; }
|
||||||
CameraManager *cm() const { return cm_; }
|
libcamera::CameraManager *cm() const { return cm_; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Environment() = default;
|
Environment() = default;
|
||||||
|
|
||||||
std::string cameraId_;
|
std::string cameraId_;
|
||||||
CameraManager *cm_;
|
libcamera::CameraManager *cm_;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __LC_COMPLIANCE_ENVIRONMENT_H__ */
|
#endif /* __LC_COMPLIANCE_ENVIRONMENT_H__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue