summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MenuBar.cpp
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2025-04-28 22:02:56 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2025-06-14 10:19:31 +0200
commitca8f9b672b3d8da3e2974802e89f6c6b6e23d99e (patch)
treeb6dd8deb5f1bf6d110d71a73521a241d37c577b1 /Source/Core/DolphinQt/MenuBar.cpp
parent95f6c76713e6c2a6b50f1a149a7886e72fea6ec7 (diff)
Source: Remove redundant lambda parameter lists
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index 948072a67a..2f3245fe62 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -296,7 +296,7 @@ void MenuBar::AddToolsMenu()
#ifdef RC_CLIENT_SUPPORTS_RAINTEGRATION
m_achievements_dev_menu = tools_menu->addMenu(tr("RetroAchievements Development"));
AchievementManager::GetInstance().SetDevMenuUpdateCallback(
- [this]() { QueueOnObject(this, [this] { this->UpdateAchievementDevelopmentMenu(); }); });
+ [this] { QueueOnObject(this, [this] { this->UpdateAchievementDevelopmentMenu(); }); });
m_achievements_dev_menu->menuAction()->setVisible(false);
#endif // RC_CLIENT_SUPPORTS_RAINTEGRATION
tools_menu->addSeparator();
@@ -406,7 +406,7 @@ void MenuBar::AddStateLoadMenu(QMenu* emu_menu)
{
QAction* action = m_state_load_slots_menu->addAction(QString{});
- connect(action, &QAction::triggered, this, [=, this]() { emit StateLoadSlotAt(i); });
+ connect(action, &QAction::triggered, this, [=, this] { emit StateLoadSlotAt(i); });
}
}
@@ -423,7 +423,7 @@ void MenuBar::AddStateSaveMenu(QMenu* emu_menu)
{
QAction* action = m_state_save_slots_menu->addAction(QString{});
- connect(action, &QAction::triggered, this, [=, this]() { emit StateSaveSlotAt(i); });
+ connect(action, &QAction::triggered, this, [=, this] { emit StateSaveSlotAt(i); });
}
}
@@ -440,7 +440,7 @@ void MenuBar::AddStateSlotMenu(QMenu* emu_menu)
if (Settings::Instance().GetStateSlot() == i)
action->setChecked(true);
- connect(action, &QAction::triggered, this, [=, this]() { emit SetStateSlot(i); });
+ connect(action, &QAction::triggered, this, [=, this] { emit SetStateSlot(i); });
connect(this, &MenuBar::SetStateSlot, [action, i](const int slot) {
if (slot == i)
action->setChecked(true);
@@ -629,7 +629,7 @@ void MenuBar::AddOptionsMenu()
m_reset_ignore_panic_handler = options_menu->addAction(tr("Reset Ignore Panic Handler"));
- connect(m_reset_ignore_panic_handler, &QAction::triggered, this, []() {
+ connect(m_reset_ignore_panic_handler, &QAction::triggered, this, [] {
Config::DeleteKey(Config::LayerType::CurrentRun, Config::MAIN_USE_PANIC_HANDLERS);
});
@@ -652,17 +652,17 @@ void MenuBar::AddHelpMenu()
QAction* website = help_menu->addAction(tr("&Website"));
connect(website, &QAction::triggered, this,
- []() { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/"))); });
+ [] { QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/"))); });
QAction* documentation = help_menu->addAction(tr("Online &Documentation"));
- connect(documentation, &QAction::triggered, this, []() {
+ connect(documentation, &QAction::triggered, this, [] {
QDesktopServices::openUrl(QUrl(QStringLiteral("https://dolphin-emu.org/docs/guides")));
});
QAction* github = help_menu->addAction(tr("&GitHub Repository"));
- connect(github, &QAction::triggered, this, []() {
+ connect(github, &QAction::triggered, this, [] {
QDesktopServices::openUrl(QUrl(QStringLiteral("https://github.com/dolphin-emu/dolphin")));
});
QAction* bugtracker = help_menu->addAction(tr("&Bug Tracker"));
- connect(bugtracker, &QAction::triggered, this, []() {
+ connect(bugtracker, &QAction::triggered, this, [] {
QDesktopServices::openUrl(
QUrl(QStringLiteral("https://bugs.dolphin-emu.org/projects/emulator")));
});
@@ -1163,7 +1163,7 @@ void MenuBar::UpdateAchievementDevelopmentMenu()
}
auto* ra_dev_menu_item = m_achievements_dev_menu->addAction(
QString::fromStdString(menu_item.label), this,
- [menu_item]() { AchievementManager::GetInstance().ActivateDevMenuItem(menu_item.id); });
+ [menu_item] { AchievementManager::GetInstance().ActivateDevMenuItem(menu_item.id); });
ra_dev_menu_item->setEnabled(menu_item.enabled);
// Recommended hardcode by RAIntegration.dll developer Jamiras
ra_dev_menu_item->setCheckable(i < 2);