diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index 3b51cefb89..a299facf95 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -361,7 +361,7 @@ void GameList::ShowContextMenu(const QPoint&) tag_action->setCheckable(true); tag_action->setChecked(game_tags.contains(tag)); - connect(tag_action, &QAction::toggled, this, [this, path, tag, model](bool checked) { + connect(tag_action, &QAction::toggled, [path, tag, model](bool checked) { if (!checked) model->RemoveGameTag(path, tag); else diff --git a/Source/Core/DolphinQt/GameList/GameTracker.cpp b/Source/Core/DolphinQt/GameList/GameTracker.cpp index ea1b87e1fd..765e98a710 100644 --- a/Source/Core/DolphinQt/GameList/GameTracker.cpp +++ b/Source/Core/DolphinQt/GameList/GameTracker.cpp @@ -73,7 +73,7 @@ GameTracker::GameTracker(QObject* parent) : QFileSystemWatcher(parent) [this](const std::shared_ptr& game) { emit GameUpdated(game); }); - QueueOnObject(this, [this] { Settings::Instance().NotifyMetadataRefreshComplete(); }); + QueueOnObject(this, [] { Settings::Instance().NotifyMetadataRefreshComplete(); }); break; case CommandType::PurgeCache: m_cache.Clear(UICommon::GameFileCache::DeleteOnDisk::Yes); @@ -136,7 +136,7 @@ void GameTracker::StartInternal() if (cache_updated) m_cache.Save(); - QueueOnObject(this, [this] { Settings::Instance().NotifyMetadataRefreshComplete(); }); + QueueOnObject(this, [] { Settings::Instance().NotifyMetadataRefreshComplete(); }); } bool GameTracker::AddPath(const QString& dir) diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp index 04efe5bea9..9cb27331e7 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp @@ -315,7 +315,7 @@ void NetPlayDialog::ConnectWidgets() client->AdjustPadBufferSize(value); }); - connect(m_host_input_authority_box, &QCheckBox::toggled, [this](bool checked) { + connect(m_host_input_authority_box, &QCheckBox::toggled, [](bool checked) { auto server = Settings::Instance().GetNetPlayServer(); if (server) server->SetHostInputAuthority(checked); diff --git a/Source/Core/DolphinQt/RenderWidget.cpp b/Source/Core/DolphinQt/RenderWidget.cpp index 6953de0798..f75882b55b 100644 --- a/Source/Core/DolphinQt/RenderWidget.cpp +++ b/Source/Core/DolphinQt/RenderWidget.cpp @@ -268,7 +268,7 @@ void RenderWidget::PassEventToImGui(const QEvent* event) // The actual text input goes through AddInputCharactersUTF8(). const QKeyEvent* key_event = static_cast(event); const bool is_down = event->type() == QEvent::KeyPress; - const int key = (key_event->key() & 0x1FF); + const u32 key = static_cast(key_event->key() & 0x1FF); auto lock = g_renderer->GetImGuiLock(); if (key < ArraySize(ImGui::GetIO().KeysDown)) ImGui::GetIO().KeysDown[key] = is_down;