From 383e4401315371bef93c510479b36c8fd53ecdc0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 15 Jan 2024 17:16:32 +0300 Subject: code cleaning --- src/mir_app/src/clcitems.cpp | 6 +----- 1 file changed, 1 insertion(+), 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)) { -- cgit v1.2.3