diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-08-08 12:25:30 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-08 12:25:30 +1000 |
| commit | 1bd8f033627ceef8479cb549447782ae860574c2 (patch) | |
| tree | bfa6fa96843079b448ca9230488a8031b742b714 /Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp | |
| parent | 1092efa77ae302fc677ebb67cdf2f93024b93f79 (diff) | |
| parent | fef1b84f0a587dc285af6659cb64042e34e54223 (diff) | |
Merge pull request #8271 from lioncash/qstring
DolphinQt: Replace unnecessary QStringLiterals with alternatives where applicable
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp index 6cc078a421..268b151df7 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlaySetupDialog.cpp @@ -349,10 +349,9 @@ void NetPlaySetupDialog::PopulateGameList() m_host_games->sortItems(); - QString selected_game = Settings::GetQSettings() - .value(QStringLiteral("netplay/hostgame"), QStringLiteral("")) - .toString(); - auto find_list = m_host_games->findItems(selected_game, Qt::MatchFlag::MatchExactly); + const QString selected_game = + Settings::GetQSettings().value(QStringLiteral("netplay/hostgame"), QString{}).toString(); + const auto find_list = m_host_games->findItems(selected_game, Qt::MatchFlag::MatchExactly); if (find_list.count() > 0) m_host_games->setCurrentItem(find_list[0]); |
