From 5c46716d28056dc41de4097efd33c89f45ae7a37 Mon Sep 17 00:00:00 2001 From: Tillmann Karras Date: Sun, 23 Jun 2024 01:15:59 +0100 Subject: [PATCH] DolphinQt: fix two -Wshadow-uncaptured-local warnings --- Source/Core/DolphinQt/GameList/GameList.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Source/Core/DolphinQt/GameList/GameList.cpp b/Source/Core/DolphinQt/GameList/GameList.cpp index 1003cff599..97c596b969 100644 --- a/Source/Core/DolphinQt/GameList/GameList.cpp +++ b/Source/Core/DolphinQt/GameList/GameList.cpp @@ -299,16 +299,14 @@ void GameList::MakeEmptyView() size_policy.setRetainSizeWhenHidden(true); m_empty->setSizePolicy(size_policy); - connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this, - [this, refreshing_msg = refreshing_msg] { - m_empty->setText(refreshing_msg); - m_empty->setEnabled(false); - }); - connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this, - [this, empty_msg = empty_msg] { - m_empty->setText(empty_msg); - m_empty->setEnabled(true); - }); + connect(&Settings::Instance(), &Settings::GameListRefreshRequested, this, [this, refreshing_msg] { + m_empty->setText(refreshing_msg); + m_empty->setEnabled(false); + }); + connect(&Settings::Instance(), &Settings::GameListRefreshCompleted, this, [this, empty_msg] { + m_empty->setText(empty_msg); + m_empty->setEnabled(true); + }); } void GameList::resizeEvent(QResizeEvent* event)