summaryrefslogtreecommitdiff
path: root/src/core/stduserinfo
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-21 17:09:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-21 17:09:34 +0300
commit12aa166ab2c280b1b8cf4d8507512c750a587de1 (patch)
treed86aaa3dd022a13e7c9e77b7db468ad260bdf634 /src/core/stduserinfo
parent4d2f4fab80174f6ab5e730b62fdf7abda015768b (diff)
code cleaning
Diffstat (limited to 'src/core/stduserinfo')
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp3
1 files changed, 1 insertions, 2 deletions
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)