diff options
author | Eugene Sandulenko | 2016-07-22 15:48:46 +0300 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 53aa0c46f1a5d6aefe3f2a087c60d9a59439aedf (patch) | |
tree | bd50f6a35c34737537887ba4a067bf846706466e /gui/saveload-dialog.cpp | |
parent | eb268cd14ff936b5afa2c39ca51acfaea51a8a90 (diff) | |
download | scummvm-rg350-53aa0c46f1a5d6aefe3f2a087c60d9a59439aedf.tar.gz scummvm-rg350-53aa0c46f1a5d6aefe3f2a087c60d9a59439aedf.tar.bz2 scummvm-rg350-53aa0c46f1a5d6aefe3f2a087c60d9a59439aedf.zip |
GUI: JANITORIAL: Fix code formatting
Diffstat (limited to 'gui/saveload-dialog.cpp')
-rw-r--r-- | gui/saveload-dialog.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 0a39f59cd6..0bed5f4d5b 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -111,9 +111,9 @@ SaveLoadChooserType getRequestedSaveLoadDialog(const MetaEngine &metaEngine) { g_gui.checkScreenChange(); if (g_gui.getWidth() >= 640 && g_gui.getHeight() >= 400 - && metaEngine.hasFeature(MetaEngine::kSavesSupportMetaInfo) - && metaEngine.hasFeature(MetaEngine::kSavesSupportThumbnail) - && userConfig.equalsIgnoreCase("grid")) { + && metaEngine.hasFeature(MetaEngine::kSavesSupportMetaInfo) + && metaEngine.hasFeature(MetaEngine::kSavesSupportThumbnail) + && userConfig.equalsIgnoreCase("grid")) { // In case we are 640x400 or higher, this dialog is not in save mode, // the user requested the grid dialog and the engines supports it we // try to set it up. @@ -232,7 +232,8 @@ void SaveLoadChooserDialog::runSaveSync(bool hasSavepathOverride) { ConnMan.showCloudDisabledIcon(); } else { Cloud::SavesSyncRequest *request = CloudMan.syncSaves(); - if (request) request->setTarget(this); + if (request) + request->setTarget(this); } } } @@ -296,13 +297,15 @@ void SaveLoadChooserDialog::listSaves() { Common::String pattern = _target + ".###"; Common::Array<Common::String> files = CloudMan.getSyncingFiles(); //returns empty array if not syncing for (uint32 i = 0; i < files.size(); ++i) { - if (!files[i].matchString(pattern, true)) continue; + if (!files[i].matchString(pattern, true)) + continue; //make up some slot number int slotNum = 0; for (uint32 j = (files[i].size() > 3 ? files[i].size() - 3 : 0); j < files[i].size(); ++j) { //3 last chars char c = files[i][j]; - if (c < '0' || c > '9') continue; + if (c < '0' || c > '9') + continue; slotNum = slotNum * 10 + (c - '0'); } |