summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-29 12:36:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-29 12:36:34 +0000
commit428bf0cbd77813a43094cb5c984436deff251936 (patch)
treed7dfa8971153d53a849e45c942be97fe5b90b7ec /plugins/MirandaG15
parent82ef17ca5286f58ae7af604fb9518e8dc496b7c3 (diff)
no more TCHARs
git-svn-id: http://svn.miranda-ng.org/main/trunk@17143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15')
-rw-r--r--plugins/MirandaG15/src/CAppletManager.cpp14
-rw-r--r--plugins/MirandaG15/src/CConfig.cpp4
2 files changed, 9 insertions, 9 deletions
diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp
index 436881080f..48d2c843c6 100644
--- a/plugins/MirandaG15/src/CAppletManager.cpp
+++ b/plugins/MirandaG15/src/CAppletManager.cpp
@@ -202,7 +202,7 @@ bool CAppletManager::Shutdown()
tstring CAppletManager::TranslateString(wchar_t *szString, ...)
{
wchar_t out[1024];
- wchar_t *szTranslatedString = TranslateTS(szString);
+ wchar_t *szTranslatedString = TranslateW(szString);
va_list body;
va_start(body, szString);
@@ -451,7 +451,7 @@ tstring CAppletManager::GetContactDisplayname(MCONTACT hContact, bool bShortened
tstring CAppletManager::GetContactGroup(MCONTACT hContact)
{
DBVARIANT dbv;
- int res = db_get_ts(hContact, "CList", "Group", &dbv);
+ int res = db_get_ws(hContact, "CList", "Group", &dbv);
tstring strGroup = L"";
if (!res)
@@ -758,7 +758,7 @@ MEVENT CAppletManager::SendMessageToContact(MCONTACT hContact, tstring strMessag
if (pIRCCon && db_get_b(hContact, szProto, "ChatRoom", 0) != 0) {
DBVARIANT dbv;
- if (db_get_ts(hContact, szProto, "Nick", &dbv))
+ if (db_get_ws(hContact, szProto, "Nick", &dbv))
return NULL;
GCDEST gcd = { szProto, 0, GC_EVENT_SENDMESSAGE };
@@ -1478,7 +1478,7 @@ int CAppletManager::HookStatusChanged(WPARAM wParam, LPARAM lParam)
Event.strDescription = TranslateString(L"Joined %s", strName.c_str());
DBVARIANT dbv;
- if (db_get_ts(Event.hContact, szProto, "Nick", &dbv))
+ if (db_get_ws(Event.hContact, szProto, "Nick", &dbv))
return 0;
CAppletManager::GetInstance()->CreateIRCHistory(Event.hContact, dbv.ptszVal);
db_free(&dbv);
@@ -1669,7 +1669,7 @@ int CAppletManager::HookSettingChanged(WPARAM hContact, LPARAM lParam)
DBVARIANT dbv = { 0 };
// if the protocol nick has changed, check if a custom handle is set
if (!strcmp(dbcws->szSetting, "Nick")) {
- if (!db_get_ts(Event.hContact, "CList", "MyHandle", &dbv)) {
+ if (!db_get_ws(Event.hContact, "CList", "MyHandle", &dbv)) {
// handle found, ignore this event
if (dbv.pszVal && mir_strlen(dbv.pszVal) > 0)
return 0;
@@ -1686,7 +1686,7 @@ int CAppletManager::HookSettingChanged(WPARAM hContact, LPARAM lParam)
}
else {
char *szProto = GetContactProto(Event.hContact);
- if (db_get_ts(Event.hContact, szProto, "Nick", &dbv))
+ if (db_get_ws(Event.hContact, szProto, "Nick", &dbv))
return 0;
Event.strValue = dbv.ptszVal;
db_free(&dbv);
@@ -1700,7 +1700,7 @@ int CAppletManager::HookSettingChanged(WPARAM hContact, LPARAM lParam)
else if (!strcmp(dbcws->szSetting, "Group")) {
Event.eType = EVENT_CONTACT_GROUP;
DBVARIANT dbv;
- int res = db_get_ts(hContact, "CList", "Group", &dbv);
+ int res = db_get_ws(hContact, "CList", "Group", &dbv);
if (!res)
Event.strValue = dbv.ptszVal;
db_free(&dbv);
diff --git a/plugins/MirandaG15/src/CConfig.cpp b/plugins/MirandaG15/src/CConfig.cpp
index 5903b8f2ca..e5c6f687ca 100644
--- a/plugins/MirandaG15/src/CConfig.cpp
+++ b/plugins/MirandaG15/src/CConfig.cpp
@@ -306,7 +306,7 @@ void CConfig::SaveFontSettings(int iFont)
// Name
mir_snprintf(szSetting, "Font%dName", iFont);
- db_set_ts(NULL, "MirandaG15", szSetting, m_logfont[iFont].lfFaceName);
+ db_set_ws(NULL, "MirandaG15", szSetting, m_logfont[iFont].lfFaceName);
UpdateFontSettings(iFont);
}
@@ -337,7 +337,7 @@ void CConfig::LoadFontSettings(int iFont)
// Name
mir_snprintf(szSetting, "Font%dName", iFont);
DBVARIANT dbv;
- if (db_get_ts(NULL, "MirandaG15", szSetting, &dbv))
+ if (db_get_ws(NULL, "MirandaG15", szSetting, &dbv))
mir_wstrcpy(m_logfont[iFont].lfFaceName, L"Small Fonts");
else {
mir_wstrcpy(m_logfont[iFont].lfFaceName, dbv.ptszVal);