diff options
| author | Léo Lam <leo@leolam.fr> | 2020-11-22 02:04:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-22 02:04:53 +0100 |
| commit | 5d9eb8f6ce127f715db6bf99c656b0c13041e23e (patch) | |
| tree | e54e593c50629e35927e7e956bba762f00b61f90 /Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp | |
| parent | d3537e68d10d4871be1cd4ddd58274f70485c374 (diff) | |
| parent | 9efc81ae98076ce55898ef5634e206d32da713a8 (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.cpp | 6 |
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); }); |
