From 252192b1a71a3771cfddb23495a89e3e3c93cb71 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sat, 11 Jan 2025 18:43:10 -0800 Subject: [PATCH] see if we can get away with the overloaded triggered --- cockatrice/src/client/tabs/tab_deck_editor.cpp | 2 +- cockatrice/src/client/tabs/tab_game.cpp | 4 ++-- cockatrice/src/client/tabs/tab_message.cpp | 2 +- cockatrice/src/client/tabs/tab_room.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cockatrice/src/client/tabs/tab_deck_editor.cpp b/cockatrice/src/client/tabs/tab_deck_editor.cpp index c3ee583d1..d88c81b02 100644 --- a/cockatrice/src/client/tabs/tab_deck_editor.cpp +++ b/cockatrice/src/client/tabs/tab_deck_editor.cpp @@ -358,7 +358,7 @@ void TabDeckEditor::createMenus() analyzeDeckMenu->addAction(aAnalyzeDeckTappedout); aClose = new QAction(QString(), this); - connect(aClose, &QAction::triggered, this, [this](bool) { closeRequest(); }); + connect(aClose, &QAction::triggered, this, [this] { closeRequest(); }); aClearFilterAll = new QAction(QString(), this); aClearFilterAll->setIcon(QPixmap("theme:icons/clearsearch")); diff --git a/cockatrice/src/client/tabs/tab_game.cpp b/cockatrice/src/client/tabs/tab_game.cpp index 36dd945e7..bd37f4bcc 100644 --- a/cockatrice/src/client/tabs/tab_game.cpp +++ b/cockatrice/src/client/tabs/tab_game.cpp @@ -1606,7 +1606,7 @@ void TabGame::createMenuItems() aConcede = new QAction(this); connect(aConcede, SIGNAL(triggered()), this, SLOT(actConcede())); aLeaveGame = new QAction(this); - connect(aLeaveGame, &QAction::triggered, this, [this](bool) { closeRequest(); }); + connect(aLeaveGame, &QAction::triggered, this, [this] { closeRequest(); }); aFocusChat = new QAction(this); connect(aFocusChat, SIGNAL(triggered()), sayEdit, SLOT(setFocus())); aCloseReplay = nullptr; @@ -1656,7 +1656,7 @@ void TabGame::createReplayMenuItems() aFocusChat = nullptr; aLeaveGame = nullptr; aCloseReplay = new QAction(this); - connect(aCloseReplay, &QAction::triggered, this, [this](bool) { closeRequest(); }); + connect(aCloseReplay, &QAction::triggered, this, [this] { closeRequest(); }); phasesMenu = nullptr; gameMenu = new QMenu(this); diff --git a/cockatrice/src/client/tabs/tab_message.cpp b/cockatrice/src/client/tabs/tab_message.cpp index ef5dd2389..7aa2d2a27 100644 --- a/cockatrice/src/client/tabs/tab_message.cpp +++ b/cockatrice/src/client/tabs/tab_message.cpp @@ -38,7 +38,7 @@ TabMessage::TabMessage(TabSupervisor *_tabSupervisor, vbox->addWidget(sayEdit); aLeave = new QAction(this); - connect(aLeave, &QAction::triggered, this, [this](bool) { closeRequest(); }); + connect(aLeave, &QAction::triggered, this, [this] { closeRequest(); }); messageMenu = new QMenu(this); messageMenu->addAction(aLeave); diff --git a/cockatrice/src/client/tabs/tab_room.cpp b/cockatrice/src/client/tabs/tab_room.cpp index 31aef0c71..810041244 100644 --- a/cockatrice/src/client/tabs/tab_room.cpp +++ b/cockatrice/src/client/tabs/tab_room.cpp @@ -101,7 +101,7 @@ TabRoom::TabRoom(TabSupervisor *_tabSupervisor, hbox->addWidget(userList, 1); aLeaveRoom = new QAction(this); - connect(aLeaveRoom, &QAction::triggered, this, [this](bool) { closeRequest(); }); + connect(aLeaveRoom, &QAction::triggered, this, [this] { closeRequest(); }); roomMenu = new QMenu(this); roomMenu->addAction(aLeaveRoom);