summaryrefslogtreecommitdiff
path: root/src/qcam/main.cpp
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2021-10-05 16:31:11 +0900
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-10-15 05:05:39 +0300
commitf277590d5cb13ad7caff189d21ce87df54f709f1 (patch)
tree09b6cfac62ad0831cb5b2ac124587e2445a38c56 /src/qcam/main.cpp
parent3b93746907dfd1367b107af943f1df5a37a2eb29 (diff)
qcam: 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 qcam. 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/qcam/main.cpp')
-rw-r--r--src/qcam/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qcam/main.cpp b/src/qcam/main.cpp
index 5eff90a3..d3f01a85 100644
--- a/src/qcam/main.cpp
+++ b/src/qcam/main.cpp
@@ -18,6 +18,8 @@
#include "main_window.h"
#include "message_handler.h"
+using namespace libcamera;
+
void signalHandler([[maybe_unused]] int signal)
{
qInfo() << "Exiting";
@@ -66,7 +68,7 @@ int main(int argc, char **argv)
sa.sa_handler = &signalHandler;
sigaction(SIGINT, &sa, nullptr);
- CameraManager *cm = new CameraManager();
+ CameraManager *cm = new libcamera::CameraManager();
ret = cm->start();
if (ret) {