From aa3d6dd09fb2ecf4a5bf91536ca67b4f71b24613 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Dec 2021 15:29:46 +0100 Subject: many: switch from using std::unique_ptr::get() to &*ptr --- tracker-pt/ftnoir_tracker_pt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tracker-pt') diff --git a/tracker-pt/ftnoir_tracker_pt.cpp b/tracker-pt/ftnoir_tracker_pt.cpp index 9201a2f6..d43e861f 100644 --- a/tracker-pt/ftnoir_tracker_pt.cpp +++ b/tracker-pt/ftnoir_tracker_pt.cpp @@ -34,7 +34,7 @@ Tracker_PT::Tracker_PT(pointer const& traits) : { opencv_init(); - connect(s.b.get(), &bundle_::saving, this, [this]{ reopen_camera_flag = true; }, Qt::DirectConnection); + connect(&*s.b, &bundle_::saving, this, [this]{ reopen_camera_flag = true; }, Qt::DirectConnection); } Tracker_PT::~Tracker_PT() @@ -136,8 +136,8 @@ module_status Tracker_PT::start_tracker(QFrame* video_frame) widget = std::make_unique(video_frame); layout = std::make_unique(video_frame); layout->setContentsMargins(0, 0, 0, 0); - layout->addWidget(widget.get()); - video_frame->setLayout(layout.get()); + layout->addWidget(&*widget); + video_frame->setLayout(&*layout); //video_widget->resize(video_frame->width(), video_frame->height()); video_frame->show(); -- cgit v1.2.3