diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-25 14:58:56 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-25 14:58:56 +0300 |
commit | 0f9e1002ec21154bc476fbfeab0d21f796515823 (patch) | |
tree | 678f870457343d977afe06b154cfa5323b75e8da /protocols/ICQ-WIM/src/menus.cpp | |
parent | ee7a91629442ba40e876e19e4cdd7af173e8e840 (diff) |
DbEvent_GetTextW: useless second parameter removed
Diffstat (limited to 'protocols/ICQ-WIM/src/menus.cpp')
-rw-r--r-- | protocols/ICQ-WIM/src/menus.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/ICQ-WIM/src/menus.cpp b/protocols/ICQ-WIM/src/menus.cpp index 5c7fca94ad..69d8191157 100644 --- a/protocols/ICQ-WIM/src/menus.cpp +++ b/protocols/ICQ-WIM/src/menus.cpp @@ -29,7 +29,7 @@ int CIcqProto::OnPrebuildMenu(WPARAM hContact, LPARAM lParam) auto *dbei = (DB::EventInfo *)lParam; Menu_ShowItem(hmiForward, dbei->eventType == EVENTTYPE_MESSAGE || dbei->eventType == EVENTTYPE_FILE); - ptrW wszText(DbEvent_GetTextW(dbei, CP_UTF8)); + ptrW wszText(DbEvent_GetTextW(dbei)); Menu_ShowItem(hmiConvert, fileText2url(wszText.get())); } return 0; @@ -123,7 +123,7 @@ void CIcqProto::ForwardMessage(MEVENT hEvent, MCONTACT to) return; CMStringW wszId(GetUserId(dbei.hContact)); - ptrW wszText(DbEvent_GetTextW(&dbei, CP_UTF8)); + ptrW wszText(DbEvent_GetTextW(&dbei)); JSONNode parts(JSON_ARRAY); JSONNode msgText; msgText << CHAR_PARAM("mediaType", "forward") << WCHAR_PARAM("sn", wszId) << INT_PARAM("time", dbei.timestamp) @@ -155,7 +155,7 @@ INT_PTR CIcqProto::SvcExecMenu(WPARAM iCommand, LPARAM pHandle) return 0; IcqFileInfo *pFileInfo = nullptr; - CMStringW wszText(ptrW(DbEvent_GetTextW(&dbei, CP_UTF8))); + CMStringW wszText(ptrW(DbEvent_GetTextW(&dbei))); if (CheckFile(dbei.hContact, wszText, pFileInfo)) { if (!pFileInfo || pFileInfo->bIsSticker) { // sticker is a simple text message prcoessed by SmileyAdd |