diff options
author | Alexander Tkachev | 2016-07-26 15:54:48 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 37859a92039fe6df705024f45f84e1fbc4df806d (patch) | |
tree | 18297ac52972617b9fdb0942444328989bdf956c /backends/cloud/onedrive | |
parent | bb529e6fd0bcbd69f804c599c9d685181560a337 (diff) | |
download | scummvm-rg350-37859a92039fe6df705024f45f84e1fbc4df806d.tar.gz scummvm-rg350-37859a92039fe6df705024f45f84e1fbc4df806d.tar.bz2 scummvm-rg350-37859a92039fe6df705024f45f84e1fbc4df806d.zip |
CLOUD: Fix Requests
Remove unnecessary JSON warnings, fix a few places.
Diffstat (limited to 'backends/cloud/onedrive')
-rw-r--r-- | backends/cloud/onedrive/onedrivetokenrefresher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/cloud/onedrive/onedrivetokenrefresher.cpp b/backends/cloud/onedrive/onedrivetokenrefresher.cpp index 5ee2772ba7..ce7895f41c 100644 --- a/backends/cloud/onedrive/onedrivetokenrefresher.cpp +++ b/backends/cloud/onedrive/onedrivetokenrefresher.cpp @@ -66,7 +66,7 @@ void OneDriveTokenRefresher::finishJson(Common::JSONValue *json) { if (jsonIsObject(json, "OneDriveTokenRefresher")) { Common::JSONObject result = json->asObject(); long httpResponseCode = -1; - if (jsonContainsAttribute(result, "error", "OneDriveTokenRefresher") && jsonIsObject(result.getVal("error"), "OneDriveTokenRefresher")) { + if (result.contains("error") && jsonIsObject(result.getVal("error"), "OneDriveTokenRefresher")) { //new token needed => request token & then retry original request if (_stream) { httpResponseCode = _stream->httpResponseCode(); |