From 5bf85412e4eacf92acc936b6e74bce0e2b1055d9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Dec 2018 21:10:08 +0100 Subject: tracker/wii: put definitions in exact namespace It messes with static analysis tools for no apparent reason. --- tracker-wii/wii_camera.cpp | 4 +++- tracker-wii/wii_frame.cpp | 4 +++- tracker-wii/wii_point_extractor.cpp | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'tracker-wii') diff --git a/tracker-wii/wii_camera.cpp b/tracker-wii/wii_camera.cpp index 684131c6..83c6a0ce 100644 --- a/tracker-wii/wii_camera.cpp +++ b/tracker-wii/wii_camera.cpp @@ -24,7 +24,7 @@ #include #include -using namespace pt_module; +namespace pt_module { WIICamera::WIICamera(const QString& module_name) : s { module_name } { @@ -332,3 +332,5 @@ void WIICamera::on_state_change(wiimote &remote, remote.SetReportType(wiimote::IN_BUTTONS_ACCEL_IR); } } + +} // ns pt_module diff --git a/tracker-wii/wii_frame.cpp b/tracker-wii/wii_frame.cpp index 432b1f18..4c2c3904 100644 --- a/tracker-wii/wii_frame.cpp +++ b/tracker-wii/wii_frame.cpp @@ -15,7 +15,7 @@ #include -using namespace pt_module; +namespace pt_module { WIIPreview& WIIPreview::operator=(const pt_frame& frame_) { @@ -102,3 +102,5 @@ void WIIPreview::ensure_size(cv::Mat& frame, int w, int h, int type) if (frame.cols != w || frame.rows != h) frame = cv::Mat(h, w, type); } + +} // ns pt_module diff --git a/tracker-wii/wii_point_extractor.cpp b/tracker-wii/wii_point_extractor.cpp index e8934fc5..2da91d01 100644 --- a/tracker-wii/wii_point_extractor.cpp +++ b/tracker-wii/wii_point_extractor.cpp @@ -31,8 +31,8 @@ #include using namespace types; -using namespace pt_module; +namespace pt_module { WIIPointExtractor::WIIPointExtractor(const QString& module_name) : s(module_name) { @@ -125,3 +125,4 @@ void WIIPointExtractor::extract_points(const pt_frame& frame_, pt_preview& previ } } +} // ns pt_module -- cgit v1.2.3