summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/windows.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG/src/windows.cpp')
-rw-r--r--protocols/IRCG/src/windows.cpp6
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);