From 134439511d180795dc79f25dd617a9dcdce8dd29 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 14 Sep 2015 19:49:42 +0000 Subject: Steam: minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15355 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/steam_contacts.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Steam/src/steam_contacts.cpp') diff --git a/protocols/Steam/src/steam_contacts.cpp b/protocols/Steam/src/steam_contacts.cpp index 85c2dc2fd6..03acc8a65f 100644 --- a/protocols/Steam/src/steam_contacts.cpp +++ b/protocols/Steam/src/steam_contacts.cpp @@ -112,7 +112,7 @@ void CSteamProto::UpdateContact(MCONTACT hContact, JSONNode *data) node = json_get(data, "realname"); if (node != NULL) { - std::wstring realname = ptrT(json_as_string(node)); + std::wstring realname = (TCHAR*)ptrT(json_as_string(node)); if (!realname.empty()) { size_t pos = realname.find(L' ', 1); @@ -137,7 +137,7 @@ void CSteamProto::UpdateContact(MCONTACT hContact, JSONNode *data) // avatar bool biggerAvatars = getBool("UseBigAvatars", false); node = json_get(data, biggerAvatars ? "avatarfull" : "avatarmedium"); - std::string avatarUrl = _T2A(ptrT(json_as_string(node))); + std::string avatarUrl = (char*)_T2A(ptrT(json_as_string(node))); CheckAvatarChange(hContact, avatarUrl); // set country @@ -364,7 +364,7 @@ void CSteamProto::OnGotFriendList(const NETLIBHTTPREQUEST *response) if (root == NULL) return; - std::string steamIds = ptrA(getStringA("SteamID")); + std::string steamIds = (char*)ptrA(getStringA("SteamID")); std::map friends; @@ -383,7 +383,7 @@ void CSteamProto::OnGotFriendList(const NETLIBHTTPREQUEST *response) if (node == NULL) continue; - std::string steamId = _T2A(ptrT(json_as_string(node))); + std::string steamId = (char*)_T2A(ptrT(json_as_string(node))); friends.insert(std::make_pair(steamId, child)); } } @@ -725,7 +725,7 @@ void CSteamProto::OnSearchByIdEnded(const NETLIBHTTPREQUEST *response, void *arg node = json_get(nroot, "realname"); if (node != NULL) { - std::wstring realname = ptrT(json_as_string(node)); + std::wstring realname = (TCHAR*)ptrT(json_as_string(node)); if (!realname.empty()) { size_t pos = realname.find(' ', 1); -- cgit v1.2.3