summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/login.h
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-07-29 18:50:37 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-07-29 18:50:37 +0000
commit2afddc4305325447f91d879af7d5c4c280257867 (patch)
tree768293d3378dc33da532e22d9b99e19ca0323680 /protocols/SkypeWeb/src/requests/login.h
parent09f41999e99c45c0948d08f474682a85504a48df (diff)
SkypeWeb: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@14754 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/requests/login.h')
-rw-r--r--protocols/SkypeWeb/src/requests/login.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/requests/login.h b/protocols/SkypeWeb/src/requests/login.h
index 1ffb2b3ba9..013292b3b1 100644
--- a/protocols/SkypeWeb/src/requests/login.h
+++ b/protocols/SkypeWeb/src/requests/login.h
@@ -24,8 +24,7 @@ public:
LoginOAuthRequest(const char *username, const char *password) :
HttpRequest(REQUEST_POST, "api.skype.com/login/skypetoken")
{
- CMStringA user(username);
- user.MakeLower();
+ CMStringA user(username); user.MakeLower();
CMStringA str(::FORMAT, "%s\nskyper\n%s", user, password);
@@ -38,7 +37,7 @@ public:
Body
<< CHAR_VALUE("scopes", "client")
<< CHAR_VALUE("clientVersion", ptrA(mir_urlEncode("0/7.4.85.102/259/")))
- << CHAR_VALUE("username", ptrA(mir_urlEncode(user.GetBuffer())))
+ << CHAR_VALUE("username", ptrA(mir_urlEncode(user)))
<< CHAR_VALUE("passwordHash", ptrA(mir_urlEncode(hash)));
}
};