aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/box
diff options
context:
space:
mode:
authorPeter Bozsó2016-07-21 09:29:54 +0200
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commit9254df2d9614b2cc8e35a3abbdc593e54616a322 (patch)
treea839f73d6e63250bce2fc8cf4eccb0cbac92e555 /backends/cloud/box
parent772d8ee42b820a5c19a8d9a9efb215f17606fb8f (diff)
downloadscummvm-rg350-9254df2d9614b2cc8e35a3abbdc593e54616a322.tar.gz
scummvm-rg350-9254df2d9614b2cc8e35a3abbdc593e54616a322.tar.bz2
scummvm-rg350-9254df2d9614b2cc8e35a3abbdc593e54616a322.zip
CLOUD: Fix code formatting
Diffstat (limited to 'backends/cloud/box')
-rw-r--r--backends/cloud/box/boxlistdirectorybyidrequest.cpp14
-rw-r--r--backends/cloud/box/boxstorage.cpp10
-rw-r--r--backends/cloud/box/boxstorage.h2
-rw-r--r--backends/cloud/box/boxuploadrequest.cpp10
4 files changed, 18 insertions, 18 deletions
diff --git a/backends/cloud/box/boxlistdirectorybyidrequest.cpp b/backends/cloud/box/boxlistdirectorybyidrequest.cpp
index 537666bc52..5a4e06265f 100644
--- a/backends/cloud/box/boxlistdirectorybyidrequest.cpp
+++ b/backends/cloud/box/boxlistdirectorybyidrequest.cpp
@@ -37,7 +37,7 @@ namespace Box {
BoxListDirectoryByIdRequest::BoxListDirectoryByIdRequest(BoxStorage *storage, Common::String id, Storage::ListDirectoryCallback cb, Networking::ErrorCallback ecb):
Networking::Request(nullptr, ecb), _requestedId(id), _storage(storage), _listDirectoryCallback(cb),
- _workingRequest(nullptr), _ignoreCallback(false) {
+ _workingRequest(nullptr), _ignoreCallback(false) {
start();
}
@@ -91,12 +91,12 @@ void BoxListDirectoryByIdRequest::responseCallback(Networking::JsonResponse resp
//TODO: check that error is returned the right way
/*
if (responseObject.contains("error") || responseObject.contains("error_summary")) {
- warning("Box returned error: %s", responseObject.getVal("error_summary")->asString().c_str());
- error.failed = true;
- error.response = json->stringify();
- finishError(error);
- delete json;
- return;
+ warning("Box returned error: %s", responseObject.getVal("error_summary")->asString().c_str());
+ error.failed = true;
+ error.response = json->stringify();
+ finishError(error);
+ delete json;
+ return;
}
*/
diff --git a/backends/cloud/box/boxstorage.cpp b/backends/cloud/box/boxstorage.cpp
index 873e4fabc1..cd61e042da 100644
--- a/backends/cloud/box/boxstorage.cpp
+++ b/backends/cloud/box/boxstorage.cpp
@@ -57,9 +57,9 @@ BoxStorage::BoxStorage(Common::String accessToken, Common::String refreshToken):
BoxStorage::BoxStorage(Common::String code) {
getAccessToken(
- new Common::Callback<BoxStorage, BoolResponse>(this, &BoxStorage::codeFlowComplete),
- new Common::Callback<BoxStorage, Networking::ErrorResponse>(this, &BoxStorage::codeFlowFailed),
- code
+ new Common::Callback<BoxStorage, BoolResponse>(this, &BoxStorage::codeFlowComplete),
+ new Common::Callback<BoxStorage, Networking::ErrorResponse>(this, &BoxStorage::codeFlowFailed),
+ code
);
}
@@ -89,9 +89,9 @@ void BoxStorage::getAccessToken(BoolCallback callback, Networking::ErrorCallback
request->addPostField("client_secret=" + Common::String(SECRET));
/*
if (Cloud::CloudManager::couldUseLocalServer()) {
- request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345");
+ request->addPostField("&redirect_uri=http%3A%2F%2Flocalhost%3A12345");
} else {
- request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
+ request->addPostField("&redirect_uri=https%3A%2F%2Fwww.scummvm.org/c/code");
}
*/
addRequest(request);
diff --git a/backends/cloud/box/boxstorage.h b/backends/cloud/box/boxstorage.h
index 89bc470a26..80a572cb31 100644
--- a/backends/cloud/box/boxstorage.h
+++ b/backends/cloud/box/boxstorage.h
@@ -68,7 +68,7 @@ public:
/**
* Return unique storage name.
- * @returns some unique storage name (for example, "Dropbox (user@example.com)")
+ * @returns some unique storage name (for example, "Dropbox (user@example.com)")
*/
virtual Common::String name() const;
diff --git a/backends/cloud/box/boxuploadrequest.cpp b/backends/cloud/box/boxuploadrequest.cpp
index d1f68f1d24..1449aa97e3 100644
--- a/backends/cloud/box/boxuploadrequest.cpp
+++ b/backends/cloud/box/boxuploadrequest.cpp
@@ -174,11 +174,11 @@ void BoxUploadRequest::uploadedCallback(Networking::JsonResponse response) {
//TODO: check errors
/*
if (object.contains("error")) {
- warning("Box returned error: %s", json->stringify(true).c_str());
- delete json;
- error.response = json->stringify(true);
- finishError(error);
- return;
+ warning("Box returned error: %s", json->stringify(true).c_str());
+ delete json;
+ error.response = json->stringify(true);
+ finishError(error);
+ return;
}
*/
}