summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-20 21:10:08 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-24 19:32:10 +0100
commit5bf85412e4eacf92acc936b6e74bce0e2b1055d9 (patch)
tree9febf122c0396608055b9edbcd56f9c0cb3834d7
parentcebe535ec18ffcacac914bfab1874fd61d35ac3b (diff)
tracker/wii: put definitions in exact namespace
It messes with static analysis tools for no apparent reason.
-rw-r--r--tracker-wii/wii_camera.cpp4
-rw-r--r--tracker-wii/wii_frame.cpp4
-rw-r--r--tracker-wii/wii_point_extractor.cpp3
3 files changed, 8 insertions, 3 deletions
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 <bthsdpdef.h>
#include <bluetoothapis.h>
-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 <opencv2/imgproc.hpp>
-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 <QDebug>
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