diff options
Diffstat (limited to 'src/core/stdmsg/src/globals.cpp')
-rw-r--r-- | src/core/stdmsg/src/globals.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/stdmsg/src/globals.cpp b/src/core/stdmsg/src/globals.cpp index f5c20cd409..01aa85af7b 100644 --- a/src/core/stdmsg/src/globals.cpp +++ b/src/core/stdmsg/src/globals.cpp @@ -42,11 +42,9 @@ static int IconsChanged(WPARAM, LPARAM) static int OnShutdown(WPARAM, LPARAM)
{
- for (int i = 0; i < pci->arSessions.getCount(); i++) {
- SESSION_INFO *si = pci->arSessions[i];
+ for (auto &si : pci->arSessions)
if (si->pDlg)
si->pDlg->Close();
- }
UninitTabs();
ImageList_Destroy(hIconsList);
|