summaryrefslogtreecommitdiff
path: root/protocols/ICQ-WIM/src/menus.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-05-13 14:23:13 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-05-13 14:23:13 +0300
commitc7d065645853b2e614e8557fa01057efaf5e6517 (patch)
tree6b5233ed788e31014e868c007ccb469ca4d64e60 /protocols/ICQ-WIM/src/menus.cpp
parent831bffd63776f4ffe82245cadf2b95c48cd44d38 (diff)
DbEvent_GetTextA: unused function removed
Diffstat (limited to 'protocols/ICQ-WIM/src/menus.cpp')
-rw-r--r--protocols/ICQ-WIM/src/menus.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/ICQ-WIM/src/menus.cpp b/protocols/ICQ-WIM/src/menus.cpp
index 847ef4d31e..392af5f41b 100644
--- a/protocols/ICQ-WIM/src/menus.cpp
+++ b/protocols/ICQ-WIM/src/menus.cpp
@@ -32,7 +32,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));
+ ptrW wszText(dbei->getText());
Menu_ShowItem(hmiConvert, fileText2url(wszText.get()));
}
return 0;
@@ -126,7 +126,7 @@ void CIcqProto::ForwardMessage(MEVENT hEvent, MCONTACT to)
return;
CMStringW wszId(GetUserId(dbei.hContact));
- ptrW wszText(DbEvent_GetTextW(&dbei));
+ ptrW wszText(dbei.getText());
JSONNode parts(JSON_ARRAY);
JSONNode msgText; msgText << CHAR_PARAM("mediaType", "forward") << WCHAR_PARAM("sn", wszId) << INT_PARAM("time", dbei.timestamp)
@@ -158,7 +158,7 @@ INT_PTR CIcqProto::SvcExecMenu(WPARAM iCommand, LPARAM pHandle)
return 0;
IcqFileInfo *pFileInfo = nullptr;
- CMStringW wszText(ptrW(DbEvent_GetTextW(&dbei)));
+ CMStringW wszText(ptrW(dbei.getText()));
if (CheckFile(dbei.hContact, wszText, pFileInfo)) {
if (!pFileInfo || pFileInfo->bIsSticker) {
// sticker is a simple text message prcoessed by SmileyAdd