diff options
author | George Hazan <george.hazan@gmail.com> | 2023-06-19 12:57:29 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-06-19 12:57:29 +0300 |
commit | 185ebd42c6f6364a615d8fe09d060c713ec10b46 (patch) | |
tree | 6d489fb61d3fd43f7ce7f6baad5a89661af0136b /plugins/TabSRMM | |
parent | e503f800768d5d794ca033a89f92e5b21d7eeee3 (diff) |
useless helper removed
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/msgdialog.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp index 253aa0c7b6..e4979c0b79 100644 --- a/plugins/TabSRMM/src/msgdialog.cpp +++ b/plugins/TabSRMM/src/msgdialog.cpp @@ -2017,8 +2017,7 @@ LRESULT CMsgDialog::WndProc_Nicklist(UINT msg, WPARAM wParam, LPARAM lParam) // string we have
int i, iItems = m_nickList.SendMsg(LB_GETCOUNT, 0, 0);
for (i = 0; i < iItems; i++) {
- USERINFO *ui = g_chatApi.UM_FindUserFromIndex(m_si, i);
- if (ui) {
+ if (USERINFO *ui = g_chatApi.UM_FindUserFromIndex(m_si, i)) {
if (!wcsnicmp(ui->pszNick, m_wszSearch, mir_wstrlen(m_wszSearch))) {
m_nickList.SendMsg(LB_SETSEL, FALSE, -1);
m_nickList.SendMsg(LB_SETSEL, TRUE, i);
|