summaryrefslogtreecommitdiff
path: root/plugins/NewStory
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewStory')
-rw-r--r--plugins/NewStory/src/history_array.cpp6
-rw-r--r--plugins/NewStory/src/history_dlg.cpp4
2 files changed, 5 insertions, 5 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);
diff --git a/plugins/NewStory/src/history_dlg.cpp b/plugins/NewStory/src/history_dlg.cpp
index c012b9651f..e4f966e852 100644
--- a/plugins/NewStory/src/history_dlg.cpp
+++ b/plugins/NewStory/src/history_dlg.cpp
@@ -174,7 +174,7 @@ class CHistoryDlg : public CDlgBase
if (!dbei)
continue;
- ptrW pwszText(DbEvent_GetTextW(&dbei, CP_UTF8));
+ ptrW pwszText(DbEvent_GetTextW(&dbei));
if (!mir_wstrlen(pwszText))
continue;
@@ -215,7 +215,7 @@ class CHistoryDlg : public CDlgBase
flags += "r";
pRoot2.push_back(JSONNode("flags", flags));
- ptrW msg(DbEvent_GetTextW(&dbei, CP_ACP));
+ ptrW msg(DbEvent_GetTextW(&dbei));
if (msg)
pRoot2.push_back(JSONNode("body", T2Utf(msg).get()));