aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-12 18:52:57 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitb272bba7519951f38aa1aa34c70197c7be1b63fd (patch)
tree0f35ac0f7dcc9b35ad38dcf6317f162bfd0118ca /backends/cloud
parent14785b12d35882f5de0aa197213ae7eda505a463 (diff)
downloadscummvm-rg350-b272bba7519951f38aa1aa34c70197c7be1b63fd.tar.gz
scummvm-rg350-b272bba7519951f38aa1aa34c70197c7be1b63fd.tar.bz2
scummvm-rg350-b272bba7519951f38aa1aa34c70197c7be1b63fd.zip
CLOUD: Do minor fixes
Diffstat (limited to 'backends/cloud')
-rw-r--r--backends/cloud/dropbox/dropboxstorage.cpp6
-rw-r--r--backends/cloud/storage.cpp2
-rw-r--r--backends/cloud/storage.h5
3 files changed, 8 insertions, 5 deletions
diff --git a/backends/cloud/dropbox/dropboxstorage.cpp b/backends/cloud/dropbox/dropboxstorage.cpp
index b841575bf6..a8e3076aae 100644
--- a/backends/cloud/dropbox/dropboxstorage.cpp
+++ b/backends/cloud/dropbox/dropboxstorage.cpp
@@ -28,7 +28,8 @@ void example1();
void example2();
void example3();
-namespace Cloud { namespace Dropbox {
+namespace Cloud {
+namespace Dropbox {
void DropboxStorage::handler() {
if (_firstTime) {
@@ -48,7 +49,8 @@ void DropboxStorage::syncSaves() {
setTimeout(1000000); //in one second
}
-} } //end of namespace Cloud::Dropbox
+} //end of namespace Dropbox
+} //end of namespace Cloud
/// SimpleJSON examples:
diff --git a/backends/cloud/storage.cpp b/backends/cloud/storage.cpp
index 3272ecf760..ca6b9bf70e 100644
--- a/backends/cloud/storage.cpp
+++ b/backends/cloud/storage.cpp
@@ -26,7 +26,7 @@
namespace Cloud {
-void cloudThread(void *thread) {
+static void cloudThread(void *thread) {
Storage *cloudThread = (Storage *)thread;
cloudThread->handler();
}
diff --git a/backends/cloud/storage.h b/backends/cloud/storage.h
index 4afa36f8d8..e71b8b7aa0 100644
--- a/backends/cloud/storage.h
+++ b/backends/cloud/storage.h
@@ -28,7 +28,7 @@
namespace Cloud {
class Storage {
- friend void cloudThread(void*); //calls handler()
+ friend void cloudThread(void *); //calls handler()
protected:
virtual void handler();
@@ -45,7 +45,8 @@ public:
* @param path directory to list
*/
- //TODO: actually make it list directories and some callback to pass gathered files list
+ //TODO: actually make it list directories
+ //TODO: add some callback to pass gathered files list
virtual void listDirectory(Common::String path) = 0;