From 8aded02eb09d418873002ea6d3e41d4d700e7e07 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 7 Oct 2012 13:47:03 +0000 Subject: - added first approach of contfct adding/deleting git-svn-id: http://svn.miranda-ng.org/main/trunk@1801 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_settings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Skype/src/skype_settings.cpp') diff --git a/protocols/Skype/src/skype_settings.cpp b/protocols/Skype/src/skype_settings.cpp index 5cbe890268..88826fb613 100644 --- a/protocols/Skype/src/skype_settings.cpp +++ b/protocols/Skype/src/skype_settings.cpp @@ -33,7 +33,7 @@ DWORD CSkypeProto::GetSettingDword(const char *setting, DWORD errorValue) wchar_t* CSkypeProto::GetSettingString(HANDLE hContact, const char *setting, wchar_t* errorValue) { DBVARIANT dbv; - TCHAR* result = NULL; + wchar_t* result = NULL; if ( !::DBGetContactSettingWString(hContact, this->m_szModuleName, setting, &dbv)) { @@ -98,17 +98,17 @@ bool CSkypeProto::SetSettingDword(const char *setting, DWORD value) return this->SetSettingDword(NULL, setting, value); } -bool CSkypeProto::SetSettingString(HANDLE hContact, const char *szSetting, wchar_t* value) +bool CSkypeProto::SetSettingString(HANDLE hContact, const char *szSetting, const wchar_t* value) { return !::DBWriteContactSettingWString(hContact, this->m_szModuleName, szSetting, value); } -bool CSkypeProto::SetSettingString(const char *szSetting, wchar_t* value) +bool CSkypeProto::SetSettingString(const char *szSetting, const wchar_t* value) { return this->SetSettingString(NULL, szSetting, value); } -bool CSkypeProto::SetDecodeSettingString(HANDLE hContact, const char *setting, wchar_t* value) +bool CSkypeProto::SetDecodeSettingString(HANDLE hContact, const char *setting, const wchar_t* value) { TCHAR* result = mir_wstrdup(value); CallService(MS_DB_CRYPT_ENCODESTRING, sizeof(result), reinterpret_cast(result)); @@ -116,7 +116,7 @@ bool CSkypeProto::SetDecodeSettingString(HANDLE hContact, const char *setting, w return !this->SetSettingString(hContact, setting, result); } -bool CSkypeProto::SetDecodeSettingString(const char *setting, wchar_t* value) +bool CSkypeProto::SetDecodeSettingString(const char *setting, const wchar_t* value) { return this->SetDecodeSettingString(NULL, setting, value); } -- cgit v1.2.3