diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:36:58 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | 40dc4c27f7d2ea66ff570281a992415a0e6578a2 (patch) | |
tree | 3251fec6eb55fac7e7c63bb7555d17f9269aba87 /protocols/IRCG/src/windows.cpp | |
parent | e8f69d4e566a3e73ff656beebcae9916e9148589 (diff) |
IRC: C++'11 iterators
Diffstat (limited to 'protocols/IRCG/src/windows.cpp')
-rw-r--r-- | protocols/IRCG/src/windows.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/IRCG/src/windows.cpp b/protocols/IRCG/src/windows.cpp index 759436f5fc..598bb17d69 100644 --- a/protocols/IRCG/src/windows.cpp +++ b/protocols/IRCG/src/windows.cpp @@ -563,10 +563,8 @@ void CQuickDlg::OnInitDialog() CCoolIrcDlg::OnInitDialog();
if (g_servers.getCount() > 0) {
- for (int i = 0; i < g_servers.getCount(); i++) {
- const SERVER_INFO& si = g_servers[i];
- m_serverCombo.AddStringA(si.m_name, (LPARAM)&si);
- }
+ for (auto &si : g_servers)
+ m_serverCombo.AddStringA(si->m_name, (LPARAM)si);
}
else EnableWindow(GetDlgItem(m_hwnd, IDOK), false);
|