summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-11-21 01:58:22 +0100
committerLéo Lam <leo@leolam.fr>2020-11-21 02:08:09 +0100
commit9efc81ae98076ce55898ef5634e206d32da713a8 (patch)
treee6fbb5eb26d8e546803ec039a23ab08d72b2df29 /Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
parent7840f61524768f47ee38c585f62f9e86d0a3d4bb (diff)
Fix variable shadowing warnings
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
index 39b989d141..a31384aee4 100644
--- a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
+++ b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
@@ -1049,10 +1049,10 @@ NetPlayDialog::FindGameFile(const NetPlay::SyncIdentifier& sync_identifier,
RunOnObject(this, [this, &sync_identifier, found] {
for (int i = 0; i < m_game_list_model.rowCount(QModelIndex()); i++)
{
- auto game_file = m_game_list_model.GetGameFile(i);
- *found = std::min(*found, game_file->CompareSyncIdentifier(sync_identifier));
+ auto file = m_game_list_model.GetGameFile(i);
+ *found = std::min(*found, file->CompareSyncIdentifier(sync_identifier));
if (*found == NetPlay::SyncIdentifierComparison::SameGame)
- return game_file;
+ return file;
}
return static_cast<std::shared_ptr<const UICommon::GameFile>>(nullptr);
});