aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/onedrive/onedriveuploadrequest.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-06-21 17:07:23 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitf3a392359be2f6d05bac107a5f7bd168c178e428 (patch)
treeeab864e98d1b75414f55053375fab076e1b23ecc /backends/cloud/onedrive/onedriveuploadrequest.cpp
parentfa3ea83165d6c378348f61f8daec85f805626dbe (diff)
downloadscummvm-rg350-f3a392359be2f6d05bac107a5f7bd168c178e428.tar.gz
scummvm-rg350-f3a392359be2f6d05bac107a5f7bd168c178e428.tar.bz2
scummvm-rg350-f3a392359be2f6d05bac107a5f7bd168c178e428.zip
CLOUD: Fix finishSuccess() warning
Diffstat (limited to 'backends/cloud/onedrive/onedriveuploadrequest.cpp')
-rw-r--r--backends/cloud/onedrive/onedriveuploadrequest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/cloud/onedrive/onedriveuploadrequest.cpp b/backends/cloud/onedrive/onedriveuploadrequest.cpp
index 08f45935d2..fb32443a27 100644
--- a/backends/cloud/onedrive/onedriveuploadrequest.cpp
+++ b/backends/cloud/onedrive/onedriveuploadrequest.cpp
@@ -126,7 +126,7 @@ void OneDriveUploadRequest::partUploadedCallback(Networking::JsonResponse respon
Common::String path = _savePath; //object.getVal("name")->asString();; //object.getVal("id")->asString();
uint32 size = object.getVal("size")->asIntegerNumber();
uint32 timestamp = ISO8601::convertToTimestamp(object.getVal("lastModifiedDateTime")->asString());
- finishSuccess(StorageFile(path, size, timestamp, false));
+ finishUpload(StorageFile(path, size, timestamp, false));
return;
}
@@ -140,7 +140,7 @@ void OneDriveUploadRequest::partUploadedCallback(Networking::JsonResponse respon
if (_contentsStream->eos() || _contentsStream->pos() >= _contentsStream->size() - 1) {
warning("no file info to return");
- finishSuccess(StorageFile(_savePath, 0, 0, false));
+ finishUpload(StorageFile(_savePath, 0, 0, false));
} else {
uploadNextPart();
}
@@ -162,7 +162,7 @@ void OneDriveUploadRequest::handle() {}
void OneDriveUploadRequest::restart() { start(); }
-void OneDriveUploadRequest::finishSuccess(StorageFile file) {
+void OneDriveUploadRequest::finishUpload(StorageFile file) {
Request::finishSuccess();
if (_uploadCallback) (*_uploadCallback)(Storage::UploadResponse(this, file));
}