summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/ftnoir_tracker_aruco.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-08-19 12:11:11 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-08-19 12:11:11 +0200
commitc1d890fcf3056cd0e45a83130055456d492d723a (patch)
tree24db9e6d42d352f645b4b69c99a48b551cabd3d1 /tracker-aruco/ftnoir_tracker_aruco.cpp
parent204354a81b04bd9b4c0aa73ed36d50511acff541 (diff)
tracker/{pt,aruco}: simplify
Diffstat (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp')
-rw-r--r--tracker-aruco/ftnoir_tracker_aruco.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tracker-aruco/ftnoir_tracker_aruco.cpp b/tracker-aruco/ftnoir_tracker_aruco.cpp
index 27d5e94b..962d0060 100644
--- a/tracker-aruco/ftnoir_tracker_aruco.cpp
+++ b/tracker-aruco/ftnoir_tracker_aruco.cpp
@@ -76,11 +76,11 @@ aruco_tracker::~aruco_tracker()
void aruco_tracker::start_tracker(QFrame* videoframe)
{
videoframe->show();
- videoWidget = qptr<cv_video_widget>(videoframe);
- layout = qptr<QHBoxLayout>();
+ videoWidget = std::make_unique<cv_video_widget>(videoframe);
+ layout = std::make_unique<QHBoxLayout>();
layout->setContentsMargins(0, 0, 0, 0);
- layout->addWidget(videoWidget.data());
- videoframe->setLayout(layout.data());
+ layout->addWidget(videoWidget.get());
+ videoframe->setLayout(layout.get());
videoWidget->show();
start();
}