aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/onedrive
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-26 15:54:48 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit37859a92039fe6df705024f45f84e1fbc4df806d (patch)
tree18297ac52972617b9fdb0942444328989bdf956c /backends/cloud/onedrive
parentbb529e6fd0bcbd69f804c599c9d685181560a337 (diff)
downloadscummvm-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.cpp2
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();