summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_opt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-06 17:49:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-06 17:49:39 +0300
commit44fc5738c808a028ecd74df2d92529f66c1ceca8 (patch)
treebd9f5a3917f687207234b8e2f83a92d4ea9a33f6 /protocols/JabberG/src/jabber_opt.cpp
parent35544c08d3f45070e2d18e18a174fc0c8a0500c5 (diff)
fixes #3400 (Удалить настройки шрифта фрейма Jabber)
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r--protocols/JabberG/src/jabber_opt.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp
index 03fce21924..b04a401774 100644
--- a/protocols/JabberG/src/jabber_opt.cpp
+++ b/protocols/JabberG/src/jabber_opt.cpp
@@ -218,7 +218,6 @@ struct { char *szCode; wchar_t *szDescription; } g_LanguageCodes[] = {
{ "yo", LPGENW("Yoruba") },
{ "za", LPGENW("Zhuang; Chuang") },
{ "zu", LPGENW("Zulu") },
- { nullptr, nullptr }
};
class CJabberDlgRegister : public CJabberDlgBase
@@ -446,9 +445,9 @@ protected:
}
else m_cbResource.SetText(L"Miranda");
- for (int i = 0; g_LanguageCodes[i].szCode; i++) {
- int iItem = m_cbLocale.AddString(TranslateW(g_LanguageCodes[i].szDescription), (LPARAM)g_LanguageCodes[i].szCode);
- if (!mir_strcmp(m_proto->m_tszSelectedLang, g_LanguageCodes[i].szCode))
+ for (auto &it : g_LanguageCodes) {
+ int iItem = m_cbLocale.AddString(TranslateW(it.szDescription), (LPARAM)it.szCode);
+ if (!mir_strcmp(m_proto->m_tszSelectedLang, it.szCode))
m_cbLocale.SetCurSel(iItem);
}