aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-26 19:09:06 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commita7b28605a01b59de6f3acc9df4cd1cac707c39e7 (patch)
treec19b7bf5a72eccf8d01da549c1f3251d097107c1 /backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
parentf4547f44df32ce1f49a6a36df083e7703751adcd (diff)
downloadscummvm-rg350-a7b28605a01b59de6f3acc9df4cd1cac707c39e7.tar.gz
scummvm-rg350-a7b28605a01b59de6f3acc9df4cd1cac707c39e7.tar.bz2
scummvm-rg350-a7b28605a01b59de6f3acc9df4cd1cac707c39e7.zip
CLOUD: Change Request::handle()
With new ConnectionManager upgrade Requests indicate that they are finished with RequestInfo.state. No need to use handle() return value anymore.
Diffstat (limited to 'backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp')
-rw-r--r--backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp b/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
index be9304081e..31f015a1cd 100644
--- a/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
+++ b/backends/cloud/dropbox/dropboxlistdirectoryrequest.cpp
@@ -112,13 +112,11 @@ void DropboxListDirectoryRequest::responseCallback(Networking::RequestDataPair p
delete json;
}
-bool DropboxListDirectoryRequest::handle() {
- if (_complete && _filesCallback) {
+void DropboxListDirectoryRequest::handle() {
+ if (_complete) {
ConnMan.getRequestInfo(_id).state = Networking::FINISHED;
if (_filesCallback) (*_filesCallback)(Storage::RequestFileArrayPair(_id, _files));
}
-
- return _complete;
}
void DropboxListDirectoryRequest::restart() {