diff options
author | George Hazan <george.hazan@gmail.com> | 2014-11-30 16:44:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-11-30 16:44:58 +0000 |
commit | 237d02ebbabbedfb8b33160ebfb5250bbd491eca (patch) | |
tree | b849e272002724c24da02b6e4b714bdf9281a34b /protocols/IcqOscarJ/src/icq_db.cpp | |
parent | f485b5e4b683cc31168d440dc89574913e814852 (diff) |
and a few more
git-svn-id: http://svn.miranda-ng.org/main/trunk@11174 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icq_db.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icq_db.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/IcqOscarJ/src/icq_db.cpp b/protocols/IcqOscarJ/src/icq_db.cpp index e121b6d0d8..4871d2d7b3 100644 --- a/protocols/IcqOscarJ/src/icq_db.cpp +++ b/protocols/IcqOscarJ/src/icq_db.cpp @@ -116,12 +116,12 @@ WORD CIcqProto::getContactStatus(MCONTACT hContact) return getWord(hContact, "Status", ID_STATUS_OFFLINE);
}
-int CIcqProto::getSettingStringStatic(MCONTACT hContact, const char *szSetting, char *dest, int dest_len)
+int CIcqProto::getSettingStringStatic(MCONTACT hContact, const char *szSetting, char *dest, size_t dest_len)
{
- if (!db_get_static(hContact, m_szModuleName, szSetting, dest, dest_len))
+ if (!db_get_static(hContact, m_szModuleName, szSetting, dest, (int)dest_len))
return 0;
- return db_get_static_utf(hContact, m_szModuleName, szSetting, dest, dest_len);
+ return db_get_static_utf(hContact, m_szModuleName, szSetting, dest, (int)dest_len);
}
int CIcqProto::setSettingDouble(MCONTACT hContact, const char *szSetting, double dValue)
@@ -129,9 +129,9 @@ int CIcqProto::setSettingDouble(MCONTACT hContact, const char *szSetting, double return setSettingBlob(hContact, szSetting, (BYTE*)&dValue, sizeof(double));
}
-int CIcqProto::setSettingBlob(MCONTACT hContact, const char *szSetting, const BYTE *pValue, const int cbValue)
+int CIcqProto::setSettingBlob(MCONTACT hContact, const char *szSetting, const BYTE *pValue, size_t cbValue)
{
- return db_set_blob(hContact, m_szModuleName, szSetting, (void*)pValue, cbValue);
+ return db_set_blob(hContact, m_szModuleName, szSetting, (void*)pValue, (unsigned)cbValue);
}
int CIcqProto::setContactHidden(MCONTACT hContact, BYTE bHidden)
|