summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorglx22 <glx@openttd.org>2021-04-30 15:41:58 +0200
committerLoïc Guilloux <glx22@users.noreply.github.com>2021-05-03 19:46:57 +0200
commit983c7ade60f82a49d8c23c1f295add1fd9a913b0 (patch)
tree879eace14cb5fa56c407fbd3c0b5a04fa6a808e2 /src/strings.cpp
parent34215f7faa2de08d767b4f6945443a8f3175acbf (diff)
downloadopenttd-983c7ade60f82a49d8c23c1f295add1fd9a913b0.tar.xz
Codechange: Replace FOR_ALL_SEARCHPATHS with range-based for loops
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index e340a2b1c..048971459 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -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());
}