Codechange: Replace FOR_ALL_SEARCHPATHS with range-based for loops
(cherry picked from commit 983c7ade60
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
ffd30cf91b
commit
72cfb991e5
@@ -2292,9 +2292,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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user