mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 17:53:42 +01:00
Using const reference for C++17 range-based loop and freq used objects
This commit is contained in:
1 parent
da318e0974
commit
315340fc62
13 files changed
+20
-20
No files matched your search
+1
-1
@@ -511,7 +511,7 @@ bool GameScreen::isRecentGame(const Path &gamePath) {
|
||||
return false;
|
||||
|
||||
const std::string resolved = File::ResolvePath(gamePath.ToString());
|
||||
for (auto iso : g_Config.RecentIsos()) {
|
||||
for (const auto &iso : g_Config.RecentIsos()) {
|
||||
const std::string recent = File::ResolvePath(iso);
|
||||
if (resolved == recent)
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user