From 8ae3679aa1339ce9abee53adb69902bd6b7513dc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 Jul 2016 10:31:04 +0000 Subject: hello, Unix. phase 1: removing _T() git-svn-id: http://svn.miranda-ng.org/main/trunk@17127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MyDetails/src/data.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/MyDetails/src/data.cpp') diff --git a/plugins/MyDetails/src/data.cpp b/plugins/MyDetails/src/data.cpp index 39132d8121..838c398f46 100644 --- a/plugins/MyDetails/src/data.cpp +++ b/plugins/MyDetails/src/data.cpp @@ -134,7 +134,7 @@ int Protocol::GetStatus() else { TCHAR *p = (tszXStatusName[0] != 0) ? TranslateTS(tszXStatusName) : TranslateT(""); if (tszXStatusMessage[0]) - mir_sntprintf(status_name, _T("%s: %s"), p, tszXStatusMessage); + mir_sntprintf(status_name, L"%s: %s", p, tszXStatusMessage); else lcopystr(status_name, p, _countof(status_name)); } @@ -212,14 +212,14 @@ bool Protocol::CanSetStatusMsg(int aStatus) void Protocol::GetStatusMsg(int aStatus, TCHAR *msg, size_t msg_size) { if (!CanGetStatusMsg()) - lcopystr(msg, _T(""), msg_size); + lcopystr(msg, L"", msg_size); else if (aStatus == status && ProtoServiceExists(name, PS_GETMYAWAYMSG)) { ptrT tmp((TCHAR *)CallProtoService(name, PS_GETMYAWAYMSG, 0, SGMA_TCHAR)); - lcopystr(msg, tmp == NULL ? _T("") : tmp, msg_size); + lcopystr(msg, tmp == NULL ? L"" : tmp, msg_size); } else if (ServiceExists(MS_AWAYMSG_GETSTATUSMSGT)) { ptrT tmp((TCHAR *)CallService(MS_AWAYMSG_GETSTATUSMSGT, (WPARAM)aStatus, (LPARAM)name)); - lcopystr(msg, tmp == NULL ? _T("") : tmp, msg_size); + lcopystr(msg, tmp == NULL ? L"" : tmp, msg_size); } } @@ -287,7 +287,7 @@ int Protocol::GetNickMaxLength() TCHAR* Protocol::GetNick() { ptrT nick(Contact_GetInfo(CNF_DISPLAY, NULL, name)); - lcopystr(nickname, (nick != NULL) ? nick : _T(""), _countof(nickname)); + lcopystr(nickname, (nick != NULL) ? nick : L"", _countof(nickname)); return nickname; } @@ -338,13 +338,13 @@ bool Protocol::ListeningToEnabled() TCHAR *Protocol::GetListeningTo() { if (!CanGetListeningTo()) { - lcopystr(listening_to, _T(""), _countof(listening_to)); + lcopystr(listening_to, L"", _countof(listening_to)); return listening_to; } DBVARIANT dbv = { 0 }; if (db_get_ts(NULL, name, "ListeningTo", &dbv)) { - lcopystr(listening_to, _T(""), _countof(listening_to)); + lcopystr(listening_to, L"", _countof(listening_to)); return listening_to; } -- cgit v1.2.3