Core, DolphinQt, UICommon: Fix all cases of -Wrange-loop-construct in gcc 11

This commit is contained in:
Emmanuel Gil Peyrot
2021-05-17 21:00:13 +02:00
parent db02b50d2e
commit ab252aedfa
5 changed files with 25 additions and 20 deletions

View File

@ -440,7 +440,7 @@ void GameCubePane::LoadSettings()
bool have_menu = false;
for (const std::string& dir : {USA_DIR, JAP_DIR, EUR_DIR})
for (const std::string dir : {USA_DIR, JAP_DIR, EUR_DIR})
{
const auto path = DIR_SEP + dir + DIR_SEP GC_IPL;
if (File::Exists(File::GetUserPath(D_GCUSER_IDX) + path) ||