diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-15 15:29:46 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2021-12-16 15:32:03 +0100 |
commit | aa3d6dd09fb2ecf4a5bf91536ca67b4f71b24613 (patch) | |
tree | 50d55ab1822ba68733325955ce6be24d82752a87 /main-window/module-mixin.cpp | |
parent | 94cdd29400d739fcec664266537ecf3904a8476d (diff) |
many: switch from using std::unique_ptr<t>::get() to &*ptr
Diffstat (limited to 'main-window/module-mixin.cpp')
-rw-r--r-- | main-window/module-mixin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main-window/module-mixin.cpp b/main-window/module-mixin.cpp index 18b2867d..5c4c3234 100644 --- a/main-window/module-mixin.cpp +++ b/main-window/module-mixin.cpp @@ -87,27 +87,27 @@ dylib_ptr module_mixin::current_filter() void module_mixin::show_tracker_settings_() { if (mk_dialog(tracker_dialog, current_tracker()) && state.work && state.work->libs.pTracker) - tracker_dialog->register_tracker(state.work->libs.pTracker.get()); + tracker_dialog->register_tracker(&*state.work->libs.pTracker); if (tracker_dialog) - QObject::connect(tracker_dialog.get(), &ITrackerDialog::closing, + QObject::connect(&*tracker_dialog, &ITrackerDialog::closing, &fuzz, [this] { tracker_dialog = nullptr; }); } void module_mixin::show_proto_settings_() { if (mk_dialog(proto_dialog, current_protocol()) && state.work && state.work->libs.pProtocol) - proto_dialog->register_protocol(state.work->libs.pProtocol.get()); + proto_dialog->register_protocol(&*state.work->libs.pProtocol); if (proto_dialog) - QObject::connect(proto_dialog.get(), &IProtocolDialog::closing, + QObject::connect(&*proto_dialog, &IProtocolDialog::closing, &fuzz, [this] { proto_dialog = nullptr; }); } void module_mixin::show_filter_settings_() { if (mk_dialog(filter_dialog, current_filter()) && state.work && state.work->libs.pFilter) - filter_dialog->register_filter(state.work->libs.pFilter.get()); + filter_dialog->register_filter(&*state.work->libs.pFilter); if (filter_dialog) - QObject::connect(filter_dialog.get(), &IFilterDialog::closing, + QObject::connect(&*filter_dialog, &IFilterDialog::closing, &fuzz, [this] { filter_dialog = nullptr; }); } |