From c1d890fcf3056cd0e45a83130055456d492d723a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 19 Aug 2017 12:11:11 +0200 Subject: tracker/{pt,aruco}: simplify --- tracker-aruco/ftnoir_tracker_aruco.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tracker-aruco/ftnoir_tracker_aruco.cpp') 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(videoframe); - layout = qptr(); + videoWidget = std::make_unique(videoframe); + layout = std::make_unique(); 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(); } -- cgit v1.2.3