diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/cloud/dropbox/dropboxstorage.cpp | 6 | ||||
-rw-r--r-- | backends/cloud/storage.cpp | 2 | ||||
-rw-r--r-- | backends/cloud/storage.h | 5 |
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; |