diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-22 12:54:47 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:01:53 +0200 |
commit | f50ac3549d6a7f1199fa012e4b03f581bc8d305b (patch) | |
tree | 50ff044f1c618119c88544709808f533ed02225e /tracker-pt/ftnoir_tracker_pt.h | |
parent | d61eb905ae3fa161d50821d01ee47915713e89c2 (diff) |
core, modules: modernize syntax only
Use more C++17 features where this helps any.
Diffstat (limited to 'tracker-pt/ftnoir_tracker_pt.h')
-rw-r--r-- | tracker-pt/ftnoir_tracker_pt.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tracker-pt/ftnoir_tracker_pt.h b/tracker-pt/ftnoir_tracker_pt.h index 489175e4..31bdc6bb 100644 --- a/tracker-pt/ftnoir_tracker_pt.h +++ b/tracker-pt/ftnoir_tracker_pt.h @@ -9,12 +9,9 @@ #pragma once #include "api/plugin-api.hpp" - -#include "cv/numeric.hpp" - #include "pt-api.hpp" #include "point_tracker.h" -#include "cv/video-widget.hpp" +#include "cv/numeric.hpp" #include <atomic> #include <memory> @@ -25,9 +22,9 @@ #include <QThread> #include <QMutex> #include <QLayout> -#include <QTimer> class TrackerDialog_PT; +class cv_video_widget; namespace pt_module { @@ -40,10 +37,9 @@ class Tracker_PT : public QThread, public ITracker friend class ::TrackerDialog_PT; public: - template<typename t> - using pointer = typename pt_runtime_traits::pointer<t>; + template<typename t> using pointer = pt_pointer<t>; - Tracker_PT(pointer<pt_runtime_traits> pt_runtime_traits); + Tracker_PT(pointer<pt_runtime_traits> const& pt_runtime_traits); ~Tracker_PT() override; module_status start_tracker(QFrame* parent_window) override; void data(double* data) override; |