aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud')
-rw-r--r--backends/cloud/cloudicon.cpp2
-rw-r--r--backends/cloud/cloudmanager.cpp7
2 files changed, 9 insertions, 0 deletions
diff --git a/backends/cloud/cloudicon.cpp b/backends/cloud/cloudicon.cpp
index fcac8566fa..708bd24f32 100644
--- a/backends/cloud/cloudicon.cpp
+++ b/backends/cloud/cloudicon.cpp
@@ -85,6 +85,8 @@ void CloudIcon::update() {
_lastUpdateTime = currentTime;
switch (_state) {
+ default:
+ // fallthrough intended
case kHidden:
return; // Nothing to do
case kShown:
diff --git a/backends/cloud/cloudmanager.cpp b/backends/cloud/cloudmanager.cpp
index 38089db0e9..5d805b202b 100644
--- a/backends/cloud/cloudmanager.cpp
+++ b/backends/cloud/cloudmanager.cpp
@@ -58,6 +58,8 @@ Common::String CloudManager::getStorageConfigName(uint32 index) const {
case kStorageOneDriveId: return "OneDrive";
case kStorageGoogleDriveId: return "GoogleDrive";
case kStorageBoxId: return "Box";
+ default:
+ break;
}
assert(false); // Unhandled StorageID value
return "";
@@ -79,6 +81,7 @@ void CloudManager::loadStorage() {
break;
default:
_activeStorage = nullptr;
+ break;
}
if (!_activeStorage) {
@@ -271,6 +274,8 @@ void CloudManager::connectStorage(uint32 index, Common::String code, Networking:
case kStorageBoxId:
new Box::BoxStorage(code, cb);
break;
+ default:
+ break;
}
// in these constructors Storages request token using the passed code
// when the token is received, they call replaceStorage()
@@ -296,6 +301,8 @@ void CloudManager::disconnectStorage(uint32 index) {
case kStorageBoxId:
Box::BoxStorage::removeFromConfig(kStoragePrefix + name + "_");
break;
+ default:
+ break;
}
switchStorage(kStorageNoneId);