summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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