Codechange: Replace FOR_ALL_SEARCHPATHS with range-based for loops

This commit is contained in:
glx22
2021-04-30 15:41:58 +02:00
committed by Loïc Guilloux
parent 34215f7faa
commit 983c7ade60
5 changed files with 22 additions and 29 deletions

View File

@@ -1949,9 +1949,7 @@ static void GetLanguageList(const char *path)
*/
void InitializeLanguagePacks()
{
Searchpath sp;
FOR_ALL_SEARCHPATHS(sp) {
for (Searchpath sp : _valid_searchpaths) {
std::string path = FioGetDirectory(sp, LANG_DIR);
GetLanguageList(path.c_str());
}