summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2020-11-22 02:04:53 +0100
committerGitHub <noreply@github.com>2020-11-22 02:04:53 +0100
commit5d9eb8f6ce127f715db6bf99c656b0c13041e23e (patch)
treee54e593c50629e35927e7e956bba762f00b61f90 /Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp
parentd3537e68d10d4871be1cd4ddd58274f70485c374 (diff)
parent9efc81ae98076ce55898ef5634e206d32da713a8 (diff)
Merge pull request #9271 from leoetlino/warnings
Fix several warnings and only enable extra warnings for our own code
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);
});