diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-15 17:16:32 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-15 17:16:32 +0300 |
commit | 383e4401315371bef93c510479b36c8fd53ecdc0 (patch) | |
tree | 3a45f4d216d096dfb6814abb596f21a0b61d9c1c | |
parent | 673975b4ff7067257e8fe4c9b835a9663b6d5178 (diff) |
code cleaning
-rw-r--r-- | src/mir_app/src/clcitems.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/mir_app/src/clcitems.cpp b/src/mir_app/src/clcitems.cpp index f51c9ab1ce..bbae7dd65b 100644 --- a/src/mir_app/src/clcitems.cpp +++ b/src/mir_app/src/clcitems.cpp @@ -383,11 +383,7 @@ void fnRebuildEntireList(HWND hwnd, ClcData *dat) group->totalMembers++;
if (dat->bFilterSearch && dat->szQuickSearch[0] != '\0') {
- wchar_t *name = Clist_GetContactDisplayName(hContact);
- wchar_t *lowered_name = CharLowerW(NEWWSTR_ALLOCA(name));
- wchar_t *lowered_search = CharLowerW(NEWWSTR_ALLOCA(dat->szQuickSearch));
-
- if (wcsstr(lowered_name, lowered_search))
+ if (mir_wstrstri(Clist_GetContactDisplayName(hContact), dat->szQuickSearch))
g_clistApi.pfnAddContactToGroup(dat, group, hContact);
}
else if (!(style & CLS_NOHIDEOFFLINE) && (style & CLS_HIDEOFFLINE || group->bHideOffline)) {
|