summaryrefslogtreecommitdiff
path: root/test/create_cli_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-11-05 00:43:00 +0100
committerCarl Hetherington <cth@carlh.net>2021-11-05 00:43:00 +0100
commit5d1496fa502655d334439b4b2658625a2b3c1b70 (patch)
treedefaa6e2074a4e3fd93dae5c3899c51a12866a65 /test/create_cli_test.cc
parentd50c23b8ddc05953322d2d0eb6ca5cb8ad88645f (diff)
C++11 tidying.
Diffstat (limited to 'test/create_cli_test.cc')
-rw-r--r--test/create_cli_test.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/create_cli_test.cc b/test/create_cli_test.cc
index ad794226f..b5663f81c 100644
--- a/test/create_cli_test.cc
+++ b/test/create_cli_test.cc
@@ -35,13 +35,13 @@ run (string cmd)
/* This approximates the logic which splits command lines up into argc/argv */
boost::escaped_list_separator<char> els ("", " ", "\"\'");
- boost::tokenizer<boost::escaped_list_separator<char> > tok (cmd, els);
+ boost::tokenizer<boost::escaped_list_separator<char>> tok (cmd, els);
std::vector<char*> argv(256);
int argc = 0;
- for (boost::tokenizer<boost::escaped_list_separator<char> >::iterator i = tok.begin(); i != tok.end(); ++i) {
- argv[argc++] = strdup (i->c_str());
+ for (auto i: tok) {
+ argv[argc++] = strdup (i.c_str());
}
CreateCLI cc (argc, argv.data());