From e2c2a1f5a84c6c9b705dc85c6a2dd1f97edd57e4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 22 May 2015 16:04:17 +0000 Subject: T2Utf - handy replacement for ptrA git-svn-id: http://svn.miranda-ng.org/main/trunk@13758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_pooling.cpp | 2 +- protocols/Steam/src/steam_queue.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_pooling.cpp b/protocols/Steam/src/steam_pooling.cpp index 912af1e7a5..4ea31428e8 100644 --- a/protocols/Steam/src/steam_pooling.cpp +++ b/protocols/Steam/src/steam_pooling.cpp @@ -30,7 +30,7 @@ void CSteamProto::ParsePollData(JSONNODE *data) node = json_get(item, "text"); ptrT text(json_as_string(node)); - ptrA szMessage(mir_utf8encodeT(text)); + T2Utf szMessage(text); if (_tcsstr(type, _T("my_")) == NULL) { diff --git a/protocols/Steam/src/steam_queue.cpp b/protocols/Steam/src/steam_queue.cpp index fee24bee64..c838b91294 100644 --- a/protocols/Steam/src/steam_queue.cpp +++ b/protocols/Steam/src/steam_queue.cpp @@ -36,7 +36,7 @@ void CSteamProto::StartQueue() } else { - ptrA username(mir_urlEncode(ptrA(mir_utf8encodeT(getTStringA("Username"))))); + ptrA username(mir_urlEncode(T2Utf(getTStringA("Username")))); if (username == NULL || username[0] == '\0') return; -- cgit v1.2.3