diff --git a/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp b/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp index 83d473ff33..b372ac9d53 100644 --- a/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp +++ b/Source/Core/DolphinQt2/Config/FilesystemWidget.cpp @@ -189,7 +189,7 @@ void FilesystemWidget::ShowContextMenu(const QPoint&) switch (type) { case EntryType::Disc: - AddAction(menu, tr("Extract Entire Disc..."), this, [this, partition, path] { + AddAction(menu, tr("Extract Entire Disc..."), this, [this, path] { auto folder = SelectFolder(); if (folder.isEmpty()) diff --git a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp index 7f0e81bfc0..43e1957031 100644 --- a/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/BreakpointWidget.cpp @@ -143,7 +143,7 @@ void BreakpointWidget::Update() int i = 0; m_table->setRowCount(i); - auto create_item = [this](const QString string = QStringLiteral("")) { + auto create_item = [](const QString string = QStringLiteral("")) { QTableWidgetItem* item = new QTableWidgetItem(string); item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); return item; diff --git a/Source/Core/DolphinQt2/GCMemcardManager.cpp b/Source/Core/DolphinQt2/GCMemcardManager.cpp index a0b5fc1900..52ee8deddb 100644 --- a/Source/Core/DolphinQt2/GCMemcardManager.cpp +++ b/Source/Core/DolphinQt2/GCMemcardManager.cpp @@ -161,7 +161,7 @@ void GCMemcardManager::UpdateSlotTable(int slot) auto& memcard = m_slot_memcard[slot]; auto* table = m_slot_table[slot]; - auto create_item = [this](const QString string = QStringLiteral("")) { + auto create_item = [](const QString string = QStringLiteral("")) { QTableWidgetItem* item = new QTableWidgetItem(string); item->setFlags(Qt::ItemIsEnabled | Qt::ItemIsSelectable); return item; diff --git a/Source/Core/DolphinQt2/MenuBar.cpp b/Source/Core/DolphinQt2/MenuBar.cpp index 5f939fb087..d8726eca80 100644 --- a/Source/Core/DolphinQt2/MenuBar.cpp +++ b/Source/Core/DolphinQt2/MenuBar.cpp @@ -478,14 +478,14 @@ void MenuBar::AddOptionsMenu() m_boot_to_pause->setChecked(SConfig::GetInstance().bBootToPause); connect(m_boot_to_pause, &QAction::toggled, this, - [this](bool enable) { SConfig::GetInstance().bBootToPause = enable; }); + [](bool enable) { SConfig::GetInstance().bBootToPause = enable; }); m_automatic_start = options_menu->addAction(tr("&Automatic Start")); m_automatic_start->setCheckable(true); m_automatic_start->setChecked(SConfig::GetInstance().bAutomaticStart); connect(m_automatic_start, &QAction::toggled, this, - [this](bool enable) { SConfig::GetInstance().bAutomaticStart = enable; }); + [](bool enable) { SConfig::GetInstance().bAutomaticStart = enable; }); m_change_font = AddAction(options_menu, tr("&Font..."), this, &MenuBar::ChangeDebugFont); } diff --git a/Source/Core/DolphinQt2/Settings/PathPane.cpp b/Source/Core/DolphinQt2/Settings/PathPane.cpp index 8a2f76c2bb..10b38f37bf 100644 --- a/Source/Core/DolphinQt2/Settings/PathPane.cpp +++ b/Source/Core/DolphinQt2/Settings/PathPane.cpp @@ -136,7 +136,7 @@ QGroupBox* PathPane::MakeGameFolderBox() vlayout->addLayout(hlayout); vlayout->addWidget(checkbox); - connect(checkbox, &QCheckBox::toggled, this, [this](bool checked) { + connect(checkbox, &QCheckBox::toggled, this, [](bool checked) { SConfig::GetInstance().m_RecursiveISOFolder = checked; for (const auto& path : Settings::Instance().GetPaths()) Settings::Instance().ReloadPath(path);