aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/gui.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2011-12-27 02:23:49 +0100
committerJohannes Schickel2011-12-27 02:37:25 +0100
commitc96e5de291ed686ea49ba312113d2fc0d343302d (patch)
treeb0f10b71db74bc43e252400fccba14f2e0c0543e /engines/kyra/gui.cpp
parent1a5026570af441dd4e9e95ba507a9f6b3e0bebbf (diff)
downloadscummvm-rg350-c96e5de291ed686ea49ba312113d2fc0d343302d.tar.gz
scummvm-rg350-c96e5de291ed686ea49ba312113d2fc0d343302d.tar.bz2
scummvm-rg350-c96e5de291ed686ea49ba312113d2fc0d343302d.zip
KYRA: Some formatting fixes.
Diffstat (limited to 'engines/kyra/gui.cpp')
-rw-r--r--engines/kyra/gui.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/kyra/gui.cpp b/engines/kyra/gui.cpp
index cc32a9785a..9e08ae0fb9 100644
--- a/engines/kyra/gui.cpp
+++ b/engines/kyra/gui.cpp
@@ -53,9 +53,9 @@ void GUI::updateSaveFileList(Common::String targetName, bool excludeQuickSaves)
for (Common::StringArray::const_iterator i = saveFileList.begin(); i != saveFileList.end(); ++i) {
char s1 = 0, s2 = 0, s3 = 0;
- s1 = (*i)[i->size()-3];
- s2 = (*i)[i->size()-2];
- s3 = (*i)[i->size()-1];
+ s1 = (*i)[i->size() - 3];
+ s2 = (*i)[i->size() - 2];
+ s3 = (*i)[i->size() - 1];
if (!isdigit(static_cast<unsigned char>(s1)) || !isdigit(static_cast<unsigned char>(s2)) || !isdigit(static_cast<unsigned char>(s3)))
continue;
s1 -= '0';
@@ -63,7 +63,7 @@ void GUI::updateSaveFileList(Common::String targetName, bool excludeQuickSaves)
s3 -= '0';
if (excludeQuickSaves && s1 == 9 && s2 == 9)
continue;
- _saveSlots.push_back(s1*100+s2*10+s3);
+ _saveSlots.push_back(s1 * 100 + s2 * 10 + s3);
}
if (_saveSlots.begin() == _saveSlots.end())
@@ -75,7 +75,7 @@ void GUI::updateSaveFileList(Common::String targetName, bool excludeQuickSaves)
void GUI::sortSaveSlots() {
Common::sort(_saveSlots.begin(), _saveSlots.end(), Common::Less<int>());
if (_saveSlots.size() > 2)
- Common::sort(_saveSlots.begin()+1, _saveSlots.end(), Common::Greater<int>());
+ Common::sort(_saveSlots.begin() + 1, _saveSlots.end(), Common::Greater<int>());
}
int GUI::getNextSavegameSlot() {
@@ -117,11 +117,11 @@ void GUI::updateSaveSlotsList(Common::String targetName, bool force) {
Common::InSaveFile *in;
_savegameList = new char*[_savegameListSize];
- memset(_savegameList, 0, _savegameListSize * sizeof(char*));
+ memset(_savegameList, 0, _savegameListSize * sizeof(char *));
for (int i = 0; i < numSaves; i++) {
in = _vm->openSaveForReading(_vm->getSavegameFilename(targetName, _saveSlots[i]).c_str(), header, targetName == _vm->_targetName);
- char **listEntry = &_savegameList[allowEmptySlots? _saveSlots[i] : i];
+ char **listEntry = &_savegameList[allowEmptySlots ? _saveSlots[i] : i];
if (in) {
*listEntry = new char[header.description.size() + 1];
Common::strlcpy(*listEntry, header.description.c_str(), header.description.size() + 1);