summaryrefslogtreecommitdiffhomepage
path: root/gui/main-window.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-06 13:23:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-10 11:19:22 +0200
commit03c5a15199b34b564314ac222d51ab687fc97a93 (patch)
treec130aa8785dc273090dbe0f3fa04e5055d851483 /gui/main-window.hpp
parent632cd5bf7778cb9062633f8d27ecd6aadcaa5d28 (diff)
get rid of the silly mem -> shared_ptr alias
Diffstat (limited to 'gui/main-window.hpp')
-rw-r--r--gui/main-window.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gui/main-window.hpp b/gui/main-window.hpp
index 71e372f0..ef6143e7 100644
--- a/gui/main-window.hpp
+++ b/gui/main-window.hpp
@@ -68,15 +68,15 @@ class MainWindow : public QMainWindow, private State
menu_action_tracker, menu_action_filter, menu_action_proto,
menu_action_options, menu_action_mappings;
- mem<dylib> current_tracker()
+ std::shared_ptr<dylib> current_tracker()
{
return modules.trackers().value(ui.iconcomboTrackerSource->currentIndex(), nullptr);
}
- mem<dylib> current_protocol()
+ std::shared_ptr<dylib> current_protocol()
{
return modules.protocols().value(ui.iconcomboProtocol->currentIndex(), nullptr);
}
- mem<dylib> current_filter()
+ std::shared_ptr<dylib> current_filter()
{
return modules.filters().value(ui.iconcomboFilter->currentIndex(), nullptr);
}
@@ -99,7 +99,7 @@ class MainWindow : public QMainWindow, private State
// only use in impl file since no definition in header!
template<typename t>
- bool mk_dialog(mem<dylib> lib, ptr<t>& d);
+ bool mk_dialog(std::shared_ptr<dylib> lib, ptr<t>& d);
// idem
template<typename t, typename... Args>