summaryrefslogtreecommitdiff
path: root/plugins/Import/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-12-26 16:39:04 +0300
commit62a186697df33c96dc1a6dac0f4dfc38652fb96f (patch)
tree1437d0906218fae8827aed384026f2b7e656f4ac /plugins/Import/src
parentfcbb395dc7ff3edab972b6d4b27dbbfb3305f5d7 (diff)
BYTE -> uint8_t
Diffstat (limited to 'plugins/Import/src')
-rw-r--r--plugins/Import/src/dbrw/dbsettings.cpp4
-rw-r--r--plugins/Import/src/import.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Import/src/dbrw/dbsettings.cpp b/plugins/Import/src/dbrw/dbsettings.cpp
index b794e38875..ba9703b127 100644
--- a/plugins/Import/src/dbrw/dbsettings.cpp
+++ b/plugins/Import/src/dbrw/dbsettings.cpp
@@ -97,7 +97,7 @@ STDMETHODIMP_(BOOL) CDbxSQLite::GetContactSettingWorker(MCONTACT contactID, LPCS
dbv->type = (int)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 0);
switch (dbv->type) {
case DBVT_BYTE:
- dbv->bVal = (BYTE)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 1);
+ dbv->bVal = (uint8_t)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 1);
break;
case DBVT_WORD:
dbv->wVal = (WORD)sqlite3_column_int(set_stmts_prep[SQL_SET_STMT_READ], 1);
@@ -128,7 +128,7 @@ STDMETHODIMP_(BOOL) CDbxSQLite::GetContactSettingWorker(MCONTACT contactID, LPCS
if (len) {
size_t copylen = isStatic ? (len < dbv->cpbVal ? len : dbv->cpbVal) : len;
if (!isStatic)
- dbv->pbVal = (BYTE*)mir_alloc(copylen);
+ dbv->pbVal = (uint8_t*)mir_alloc(copylen);
memcpy(dbv->pbVal, sqlite3_column_blob(set_stmts_prep[SQL_SET_STMT_READ], 1), copylen);
dbv->cpbVal = (WORD)copylen;
}
diff --git a/plugins/Import/src/import.cpp b/plugins/Import/src/import.cpp
index 1dccf81d41..2e5a8616d8 100644
--- a/plugins/Import/src/import.cpp
+++ b/plugins/Import/src/import.cpp
@@ -880,7 +880,7 @@ void CImportBatch::ImportHistory(MCONTACT hContact, PROTOACCOUNT **protocol, int
bool bSkipAll = false;
DWORD cbAlloc = 4096;
- BYTE *eventBuf = (uint8_t*)mir_alloc(cbAlloc);
+ uint8_t *eventBuf = (uint8_t*)mir_alloc(cbAlloc);
// Get the start of the event chain
int i = 0;