summaryrefslogtreecommitdiffhomepage
path: root/tracker-kinect-face
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-03-28 09:22:24 +0100
committerStéphane Lenclud <github@lenclud.com>2019-03-28 17:45:05 +0100
commitdf4eaa52d3f32b65afaed27cb7205918b53d45b5 (patch)
treea172776c6f7b6db79cbcd4ac52a635d8e8047e1d /tracker-kinect-face
parentd3445ae71743de358516d295294f4f569f1adfa5 (diff)
tracker/kinect: use C++11 style
Diffstat (limited to 'tracker-kinect-face')
-rw-r--r--tracker-kinect-face/camera_kinect_ir.cpp4
-rw-r--r--tracker-kinect-face/camera_kinect_ir.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/tracker-kinect-face/camera_kinect_ir.cpp b/tracker-kinect-face/camera_kinect_ir.cpp
index f80eb73f..04607dd1 100644
--- a/tracker-kinect-face/camera_kinect_ir.cpp
+++ b/tracker-kinect-face/camera_kinect_ir.cpp
@@ -36,9 +36,7 @@ namespace Kinect {
std::vector<QString> CamerasProvider::camera_names() const
{
- std::vector<QString> cameras;
- cameras.push_back(KKinectIRSensor);
- return cameras;
+ return { KKinectIRSensor };
}
bool CamerasProvider::can_show_dialog(const QString& camera_name)
diff --git a/tracker-kinect-face/camera_kinect_ir.h b/tracker-kinect-face/camera_kinect_ir.h
index d5b25baa..d9e814a0 100644
--- a/tracker-kinect-face/camera_kinect_ir.h
+++ b/tracker-kinect-face/camera_kinect_ir.h
@@ -42,7 +42,7 @@ namespace Kinect {
struct CameraKinectIr final : video::impl::camera
{
CameraKinectIr();
- virtual ~CameraKinectIr();
+ ~CameraKinectIr() override;
[[nodiscard]] bool start(const info& args) override;