diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 14:27:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 14:27:45 +0000 |
commit | 97eb95cd8aecd628d82d3aee30b81e567beb7754 (patch) | |
tree | ada84b3b7b20bc1f5ab6b490286ab1d41529108f /protocols/JabberG/src/jabber_std.cpp | |
parent | 3bcc4ebb3e1a43574fb934a80903feaa56642089 (diff) |
almost all old helpers replaced with smart pointers
git-svn-id: http://svn.miranda-ng.org/main/trunk@5307 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_std.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_std.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/protocols/JabberG/src/jabber_std.cpp b/protocols/JabberG/src/jabber_std.cpp index c7b206e5ef..ad01670e03 100644 --- a/protocols/JabberG/src/jabber_std.cpp +++ b/protocols/JabberG/src/jabber_std.cpp @@ -30,49 +30,12 @@ void CJabberProto::JDeleteSetting(HANDLE hContact, const char* valueName) db_unset(hContact, m_szModuleName, valueName);
}
-int CJabberProto::JGetStringUtf(HANDLE hContact, char* valueName, DBVARIANT* dbv)
-{
- return db_get_utf(hContact, m_szModuleName, valueName, dbv);
-}
-
-TCHAR *CJabberProto::JGetStringT(HANDLE hContact, char* valueName)
-{
- DBVARIANT dbv = {0};
- if (getTString(hContact, valueName, &dbv))
- return NULL;
-
- TCHAR *res = mir_tstrdup(dbv.ptszVal);
- db_free(&dbv);
- return res;
-}
-
-TCHAR *CJabberProto::JGetStringT(HANDLE hContact, char* valueName, TCHAR *&out)
-{
- return out = JGetStringT(hContact, valueName);
-}
-
-TCHAR *CJabberProto::JGetStringT(HANDLE hContact, char* valueName, TCHAR *buf, int size)
-{
- DBVARIANT dbv = {0};
- if (getTString(hContact, valueName, &dbv))
- return NULL;
-
- lstrcpyn(buf, dbv.ptszVal, size);
- db_free(&dbv);
- return buf;
-}
-
void CJabberProto::JLoginFailed(int errorCode)
{
*m_savedPassword = 0;
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_FAILED, NULL, errorCode);
}
-DWORD CJabberProto::JSetStringUtf(HANDLE hContact, const char* valueName, const char* parValue)
-{
- return db_set_utf(hContact, m_szModuleName, valueName, parValue);
-}
-
// save/load crypted strings
void __forceinline sttCryptString(char *str)
{
|