summaryrefslogtreecommitdiff
path: root/plugins/NewStory/src/history_array.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-25 14:58:56 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-25 14:58:56 +0300
commit0f9e1002ec21154bc476fbfeab0d21f796515823 (patch)
tree678f870457343d977afe06b154cfa5323b75e8da /plugins/NewStory/src/history_array.cpp
parentee7a91629442ba40e876e19e4cdd7af173e8e840 (diff)
DbEvent_GetTextW: useless second parameter removed
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r--plugins/NewStory/src/history_array.cpp6
1 files changed, 3 insertions, 3 deletions
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);