From 0ebf65f45145a678acbd93c30990c288b582bbd9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 14 Dec 2021 21:34:37 +0100 Subject: logic, opentrack: remove redundant casts --- opentrack/main-window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'opentrack') diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp index 85c34c51..314e82f2 100644 --- a/opentrack/main-window.cpp +++ b/opentrack/main-window.cpp @@ -87,10 +87,10 @@ void main_window::init_dylibs() this, [&](const QString&) { pTrackerDialog = nullptr; }); connect(ui.iconcomboProtocol, &QComboBox::currentTextChanged, - this, [&](const QString&) { pProtocolDialog = nullptr; }); + this, [this](const QString&) { pProtocolDialog = nullptr; }); connect(ui.iconcomboFilter, &QComboBox::currentTextChanged, - this, [&](const QString&) { pFilterDialog = nullptr; }); + this, [this](const QString&) { pFilterDialog = nullptr; }); connect(&m.tracker_dll, value_::value_changed(), this, &main_window::save_modules, @@ -176,7 +176,7 @@ void main_window::init_tray_menu() menu_action_show.setIconVisibleInMenu(true); menu_action_show.setText(isHidden() ? tr("Show the Octopus") : tr("Hide the Octopus")); menu_action_show.setIcon(QIcon(":/images/opentrack.png")); - QObject::connect(&menu_action_show, &QAction::triggered, this, [&] { toggle_restore_from_tray(QSystemTrayIcon::Trigger); }); + QObject::connect(&menu_action_show, &QAction::triggered, this, [this] { toggle_restore_from_tray(QSystemTrayIcon::Trigger); }); tray_menu.addAction(&menu_action_show); tray_menu.addSeparator(); -- cgit v1.2.3