summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdfile/src/ftmanager.cpp2
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/stdfile/src/ftmanager.cpp b/src/core/stdfile/src/ftmanager.cpp
index 56b0a168a7..10f4215c63 100644
--- a/src/core/stdfile/src/ftmanager.cpp
+++ b/src/core/stdfile/src/ftmanager.cpp
@@ -143,7 +143,7 @@ static INT_PTR CALLBACK FtMgrPageDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPA
case WM_FT_REMOVE:
for (auto &it : dat->arWindows)
if (it->hwnd == (HWND)lParam) {
- dat->arWindows.remove(dat->arWindows.indexOf(&it));
+ dat->arWindows.removeItem(&it);
break;
}
LayoutTransfers(hwnd, dat);
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp
index 30792d9244..96d15c8805 100644
--- a/src/core/stduserinfo/src/userinfo.cpp
+++ b/src/core/stduserinfo/src/userinfo.cpp
@@ -122,8 +122,7 @@ class CUserInfoDlg : public CDlgBase
if (!it->pDialog->IsEmpty())
continue;
- delete it;
- items.remove(items.indexOf(&it));
+ delete items.removeItem(&it);
}
if (items.getCount() == 0)