summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_login.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-07-27 14:23:31 +0000
commit2f261839b60692e33d0e160344d0d636d49c90ba (patch)
tree187921722698b681d29df3f6e60fb18394a5e9d5 /protocols/Steam/src/steam_login.cpp
parent2e931a0b2780587d85f3902468c935f5adba70c8 (diff)
less TCHARs
git-svn-id: http://svn.miranda-ng.org/main/trunk@17138 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_login.cpp')
-rw-r--r--protocols/Steam/src/steam_login.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/Steam/src/steam_login.cpp b/protocols/Steam/src/steam_login.cpp
index 15fb3d6483..8bf65f6f30 100644
--- a/protocols/Steam/src/steam_login.cpp
+++ b/protocols/Steam/src/steam_login.cpp
@@ -30,11 +30,11 @@ bool CSteamProto::Relogin()
if (root != NULL) {
JSONNode *node = json_get(root, "error");
- ptrT error(json_as_string(node));
- if (!mir_tstrcmpi(error, L"OK"))
+ ptrW error(json_as_string(node));
+ if (!mir_wstrcmpi(error, L"OK"))
{
node = json_get(root, "umqid");
- setString("UMQID", ptrA(mir_u2a(ptrT(json_as_string(node)))));
+ setString("UMQID", ptrA(mir_u2a(ptrW(json_as_string(node)))));
node = json_get(root, "message");
setDword("MessageID", json_as_int(node));
@@ -148,10 +148,10 @@ void CSteamProto::DeleteAuthSettings()
void CSteamProto::OnAuthorizationError(const JSONNode &node)
{
std::string message = node["message"].as_string();
- ptrT messageT(mir_utf8decodeT(message.c_str()));
+ ptrW messageT(mir_utf8decodeW(message.c_str()));
debugLogA("CSteamProto::OnAuthorizationError: %s", message.c_str());
- if (!mir_tstrcmpi(messageT, L"Incorrect login."))
+ if (!mir_wstrcmpi(messageT, L"Incorrect login."))
{
// We can't continue with incorrect login/password
DeleteAuthSettings();
@@ -367,8 +367,8 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response)
JSONROOT root(response->pData);
JSONNode *node = json_get(root, "error");
- ptrT error(json_as_string(node));
- if (mir_tstrcmpi(error, L"OK"))
+ ptrW error(json_as_string(node));
+ if (mir_wstrcmpi(error, L"OK"))
{
// Probably expired TokenSecret
HandleTokenExpired();
@@ -376,14 +376,14 @@ void CSteamProto::OnLoggedOn(const HttpResponse *response)
}
node = json_get(root, "umqid");
- setString("UMQID", ptrA(mir_u2a(ptrT(json_as_string(node)))));
+ setString("UMQID", ptrA(mir_u2a(ptrW(json_as_string(node)))));
node = json_get(root, "message");
setDword("MessageID", json_as_int(node));
if (m_lastMessageTS <= 0) {
node = json_get(root, "utc_timestamp");
- time_t timestamp = _wtoi64(ptrT(json_as_string(node)));
+ time_t timestamp = _wtoi64(ptrW(json_as_string(node)));
setDword("LastMessageTS", timestamp);
}