mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 14:59:44 +03:00
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"
|
||||
|
||||
using namespace libcamera;
|
||||
|
||||
Environment *Environment::get()
|
||||
{
|
||||
static Environment instance;
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue