diff options
author | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-12-26 16:39:04 +0300 |
commit | 62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch) | |
tree | 1437d0906218fae8827aed384026f2b7e656f4ac /plugins/NewStory/src | |
parent | fcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff) |
BYTE -> uint8_t
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/options.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
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<BYTE> pData((BYTE *)mir_calloc(dbe.cbBlob + 1)); + mir_ptr<uint8_t> 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; |