aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2010-03-18 15:54:40 +0000
committerMax Horn2010-03-18 15:54:40 +0000
commitcac0ac66e22d18a57958ef342e6b115e35197e90 (patch)
tree1fef12f458e84cdba353bd9b3ef45e3d00a63a16 /engines/scumm
parent81a698d0a0a52115088825523950047d135b0ca0 (diff)
downloadscummvm-rg350-cac0ac66e22d18a57958ef342e6b115e35197e90.tar.gz
scummvm-rg350-cac0ac66e22d18a57958ef342e6b115e35197e90.tar.bz2
scummvm-rg350-cac0ac66e22d18a57958ef342e6b115e35197e90.zip
COMMON: Get rid of Common::StringList
svn-id: r48287
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/detection.cpp4
-rw-r--r--engines/scumm/saveload.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index e1a2a4866a..4e031d6672 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -1036,7 +1036,7 @@ int ScummMetaEngine::getMaximumSaveSlot() const { return 99; }
SaveStateList ScummMetaEngine::listSaves(const char *target) const {
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
- Common::StringList filenames;
+ Common::StringArray filenames;
Common::String saveDesc;
Common::String pattern = target;
pattern += ".s??";
@@ -1045,7 +1045,7 @@ SaveStateList ScummMetaEngine::listSaves(const char *target) const {
sort(filenames.begin(), filenames.end()); // Sort (hopefully ensuring we are sorted numerically..)
SaveStateList saveList;
- for (Common::StringList::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
+ for (Common::StringArray::const_iterator file = filenames.begin(); file != filenames.end(); ++file) {
// Obtain the last 2 digits of the filename, since they correspond to the save slot
int slotNum = atoi(file->c_str() + file->size() - 2);
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 1ba7cdbce1..24fbf0949e 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -582,7 +582,7 @@ void ScummEngine::listSavegames(bool *marks, int num) {
char slot[3];
int slotNum;
- Common::StringList files;
+ Common::StringArray files;
Common::String prefix = makeSavegameName(99, false);
prefix.setChar('*', prefix.size()-2);
@@ -590,7 +590,7 @@ void ScummEngine::listSavegames(bool *marks, int num) {
memset(marks, false, num * sizeof(bool)); //assume no savegames for this title
files = _saveFileMan->listSavefiles(prefix);
- for (Common::StringList::const_iterator file = files.begin(); file != files.end(); ++file) {
+ for (Common::StringArray::const_iterator file = files.begin(); file != files.end(); ++file) {
//Obtain the last 2 digits of the filename, since they correspond to the save slot
slot[0] = file->c_str()[file->size()-2];
slot[1] = file->c_str()[file->size()-1];