summaryrefslogtreecommitdiff
path: root/option.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-24 20:01:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-24 20:01:51 -0400
commitc6860970f27ed1f0d9b9543da46ffffa5c20e8f6 (patch)
tree8dcdf28f18164d8cc099857633c41e70022f90be /option.cc
parent2943af2761e6ac5064db077046e230fa1c2b06dd (diff)
downloadledger-c6860970f27ed1f0d9b9543da46ffffa5c20e8f6.tar.gz
ledger-c6860970f27ed1f0d9b9543da46ffffa5c20e8f6.tar.bz2
ledger-c6860970f27ed1f0d9b9543da46ffffa5c20e8f6.zip
removed all uses of std::vector; simplified some code
Diffstat (limited to 'option.cc')
-rw-r--r--option.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/option.cc b/option.cc
index 98557c7c..d8ca441a 100644
--- a/option.cc
+++ b/option.cc
@@ -83,8 +83,7 @@ void process_arguments(int argc, char ** argv, const bool anywhere,
if ((*i)[2] == '\0')
break;
- for (std::vector<option_t>::iterator j
- = option_handler::options.begin();
+ for (std::list<option_t>::iterator j = option_handler::options.begin();
j != option_handler::options.end();
j++)
if ((*j).wants_arg) {
@@ -108,8 +107,7 @@ void process_arguments(int argc, char ** argv, const bool anywhere,
std::cerr << "Error: illegal option " << *i << std::endl;
std::exit(1);
} else {
- for (std::vector<option_t>::iterator j
- = option_handler::options.begin();
+ for (std::list<option_t>::iterator j = option_handler::options.begin();
j != option_handler::options.end();
j++)
if ((*i)[1] == (*j).short_opt) {