From 62a186697df33c96dc1a6dac0f4dfc38652fb96f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 26 Dec 2021 16:39:04 +0300 Subject: BYTE -> uint8_t --- plugins/NewStory/src/history_array.cpp | 2 +- plugins/NewStory/src/history_control.cpp | 2 +- plugins/NewStory/src/options.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/NewStory/src') diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index dfa1da0064..3b289dc110 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -76,7 +76,7 @@ void ItemData::load(bool bFullLoad) return; dbe.cbBlob = db_event_getBlobSize(hEvent); - mir_ptr pData((BYTE *)mir_calloc(dbe.cbBlob + 1)); + mir_ptr pData((uint8_t *)mir_calloc(dbe.cbBlob + 1)); dbe.pBlob = pData; if (!db_event_get(hEvent, &dbe)) { bLoaded = true; diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 8f6cf3380f..9417843ffc 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -178,7 +178,7 @@ struct NewstoryListData : public MZeroedObject if (pItem->hContact && pItem->hEvent) { ptrA szUtf(mir_utf8encodeW(pItem->wtext)); pItem->dbe.cbBlob = (int)mir_strlen(szUtf) + 1; - pItem->dbe.pBlob = (BYTE *)szUtf.get(); + pItem->dbe.pBlob = (uint8_t *)szUtf.get(); db_event_edit(pItem->hContact, pItem->hEvent, &pItem->dbe); if (auto *ppro = Proto_GetInstance(pItem->hContact)) diff --git a/plugins/NewStory/src/options.cpp b/plugins/NewStory/src/options.cpp index e63d4ac88f..1daf9e065e 100644 --- a/plugins/NewStory/src/options.cpp +++ b/plugins/NewStory/src/options.cpp @@ -89,7 +89,7 @@ public: db_set_ws(m_hContact, META_PROTO, "Nick", TranslateT("Test contact")); DBEVENTINFO dbei = {}; - dbei.pBlob = (BYTE *)"The quick brown fox jumps over the lazy dog"; + dbei.pBlob = (uint8_t *)"The quick brown fox jumps over the lazy dog"; dbei.cbBlob = (DWORD)strlen((char *)dbei.pBlob); dbei.flags = DBEF_TEMPORARY; dbei.eventType = EVENTTYPE_MESSAGE; -- cgit v1.2.3