diff options
author | Max Horn | 2003-10-05 14:03:07 +0000 |
---|---|---|
committer | Max Horn | 2003-10-05 14:03:07 +0000 |
commit | fd2c041d79e6b4132d7edeab6be613984dedefd3 (patch) | |
tree | 88a8603c5c24e462531af2c0a8e621259f6eeacb /gui | |
parent | a0fb1850de7e4a69cd21946a6fee431cb6beb0c6 (diff) | |
download | scummvm-rg350-fd2c041d79e6b4132d7edeab6be613984dedefd3.tar.gz scummvm-rg350-fd2c041d79e6b4132d7edeab6be613984dedefd3.tar.bz2 scummvm-rg350-fd2c041d79e6b4132d7edeab6be613984dedefd3.zip |
Make use of new List iterator
svn-id: r10609
Diffstat (limited to 'gui')
-rw-r--r-- | gui/launcher.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp index 3f12bfd057..91866a8ad0 100644 --- a/gui/launcher.cpp +++ b/gui/launcher.cpp @@ -228,18 +228,18 @@ void LauncherDialog::close() { } void LauncherDialog::updateListing() { - int i; Common::StringList l; // Retrieve a list of all games defined in the config file _domains.clear(); StringList domains = g_config->get_domains(); - for (i = 0; i < domains.size(); i++) { - String name(g_config->get("gameid", domains[i])); - String description(g_config->get("description", domains[i])); + StringList::ConstIterator iter = domains.begin(); + for (iter = domains.begin(); iter != domains.end(); ++iter) { + String name(g_config->get("gameid", *iter)); + String description(g_config->get("description", *iter)); if (name.isEmpty()) - name = domains[i]; + name = *iter; if (description.isEmpty()) { const TargetSettings *v = _detector.findTarget(name.c_str()); if (v && v->description) @@ -253,7 +253,7 @@ void LauncherDialog::updateListing() { while (pos < size && (description > l[pos])) pos++; l.insert_at(pos, description); - _domains.insert_at(pos, domains[i]); + _domains.insert_at(pos, *iter); } } |