summaryrefslogtreecommitdiff
path: root/src/core/stduserinfo
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-21 20:26:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-21 20:26:50 +0300
commit1af62415a03e312a813a4f56ba9606d3ed9ab1ee (patch)
tree9745ef13d6034351896186626fd528a69ddd288a /src/core/stduserinfo
parent06e4b579a26dc7bac30aa33edf55c986e03b1525 (diff)
these iterator variables became useless
Diffstat (limited to 'src/core/stduserinfo')
-rw-r--r--src/core/stduserinfo/src/userinfo.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/stduserinfo/src/userinfo.cpp b/src/core/stduserinfo/src/userinfo.cpp
index 96d15c8805..a8757ab008 100644
--- a/src/core/stduserinfo/src/userinfo.cpp
+++ b/src/core/stduserinfo/src/userinfo.cpp
@@ -119,10 +119,8 @@ class CUserInfoDlg : public CDlgBase
for (auto &it : items.rev_iter()) {
it->pDialog->SetContact(hContact);
- if (!it->pDialog->IsEmpty())
- continue;
-
- delete items.removeItem(&it);
+ if (it->pDialog->IsEmpty())
+ delete items.removeItem(&it);
}
if (items.getCount() == 0)