diff options
Diffstat (limited to 'plugins/SpellChecker/src/spellchecker.cpp')
-rw-r--r-- | plugins/SpellChecker/src/spellchecker.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/SpellChecker/src/spellchecker.cpp b/plugins/SpellChecker/src/spellchecker.cpp index 0640f6f10b..4b495303c1 100644 --- a/plugins/SpellChecker/src/spellchecker.cpp +++ b/plugins/SpellChecker/src/spellchecker.cpp @@ -145,7 +145,7 @@ static int ModulesLoaded(WPARAM, LPARAM) // Get language flags for (int i = 0; i < languages.getCount(); i++) { - Dictionary *p = languages[i]; + auto *p = languages[i]; sid.description.w = p->full_name; char lang[32]; @@ -179,9 +179,7 @@ static int ModulesLoaded(WPARAM, LPARAM) FreeLibrary(hFlagsDll); } - for (int j = 0; j < languages.getCount(); j++) { - Dictionary *dict = languages[j]; - + for (auto &dict : languages) { wchar_t filename[MAX_PATH]; mir_snwprintf(filename, L"%s\\%s.ar", customDictionariesFolder, dict->language); dict->autoReplace = new AutoReplaceMap(filename, dict); |