From 0f9e1002ec21154bc476fbfeab0d21f796515823 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Dec 2023 14:58:56 +0300 Subject: DbEvent_GetTextW: useless second parameter removed --- plugins/NewStory/src/history_array.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewStory/src/history_array.cpp') diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 1193f56449..2d109c1540 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -61,7 +61,7 @@ bool Filter::check(ItemData *item) const if (!item->fetch()) return false; - return CheckFilter(ptrW(DbEvent_GetTextW(&item->dbe, CP_UTF8)), text); + return CheckFilter(ptrW(DbEvent_GetTextW(&item->dbe)), text); } return true; @@ -441,7 +441,7 @@ void ItemData::load(bool bLoadAlways) break; default: - wtext = DbEvent_GetTextW(&dbe, CP_ACP); + wtext = DbEvent_GetTextW(&dbe); break; } @@ -457,7 +457,7 @@ void ItemData::load(bool bLoadAlways) } else str.AppendFormat(L"%s %s: ", Clist_GetContactDisplayName(hContact, 0), TranslateT("wrote")); - ptrW wszText(DbEvent_GetTextW(&dbei, CP_ACP)); + ptrW wszText(DbEvent_GetTextW(&dbei)); if (mir_wstrlen(wszText) > 43) wcscpy(wszText.get() + 40, L"..."); str.Append(wszText); -- cgit v1.2.3