diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-30 11:48:24 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-07-30 11:48:24 +0000 |
commit | 6adf63a8d746ad357a3bbfedebd2281080241f19 (patch) | |
tree | 80a7972d1bfa83d25e36a985e60681a8b42ed1fa /protocols/SkypeWeb/src/skype_login.cpp | |
parent | 1271802f514d41e8e06df7714d1f1e4a430b417b (diff) |
SkypeWeb: refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@14758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_login.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_login.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp index f4e259e753..ae2df823d9 100644 --- a/protocols/SkypeWeb/src/skype_login.cpp +++ b/protocols/SkypeWeb/src/skype_login.cpp @@ -64,10 +64,10 @@ void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response) if (response->resultCode != 200)
{
int error = 0;
- if (!json["status"].isnull())
+ if (json["status"])
{
const JSONNode &status = json["status"];
- if (!status["code"].isnull())
+ if (status["code"])
{
switch(status["code"].as_int())
{
@@ -91,7 +91,7 @@ void CSkypeProto::OnLoginOAuth(const NETLIBHTTPREQUEST *response) }
default:
{
- ShowNotification(_T("Skype"), !status["text"].isnull() ? status["text"].as_mstring().GetBuffer() : TranslateT("Authentication failed. Unknown error."), NULL, 1);
+ ShowNotification(_T("Skype"), status["text"] ? status["text"].as_mstring() : TranslateT("Authentication failed. Unknown error."), NULL, 1);
error = LOGIN_ERROR_UNKNOWN;
}
}
|