diff options
author | 2015-08-10 22:01:33 -0700 | |
---|---|---|
committer | 2015-08-10 22:01:33 -0700 | |
commit | 3a2ba60b707edb0748e571ef067fd2b41ca14a13 (patch) | |
tree | 1eb09af72d7407b7077c9497dd55110e0ec9561f /src | |
parent | aa76f64a94f9b8505e2093757ca2dbb3c8e44f88 (diff) |
Use ++iter, not iter++ in input.cpp
Diffstat (limited to 'src')
-rw-r--r-- | src/input.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/input.cpp b/src/input.cpp index 2629506f..d8977be3 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -555,7 +555,7 @@ static void input_mapping_execute(const input_mapping_t &m, bool allow_commands) has_commands: there are shell commands that need to be evaluated */ bool has_commands = false, has_functions = false; - for (wcstring_list_t::const_iterator it = m.commands.begin(), end = m.commands.end(); it != end; it++) + for (wcstring_list_t::const_iterator it = m.commands.begin(), end = m.commands.end(); it != end; ++it) { if (input_function_get_code(*it) != -1) has_functions = true; @@ -584,7 +584,7 @@ static void input_mapping_execute(const input_mapping_t &m, bool allow_commands) else if (has_functions && !has_commands) { /* functions are added at the head of the input queue */ - for (wcstring_list_t::const_reverse_iterator it = m.commands.rbegin(), end = m.commands.rend (); it != end; it++) + for (wcstring_list_t::const_reverse_iterator it = m.commands.rbegin(), end = m.commands.rend(); it != end; ++it) { wchar_t code = input_function_get_code(*it); input_function_push_args(code); @@ -599,7 +599,7 @@ static void input_mapping_execute(const input_mapping_t &m, bool allow_commands) -f execute), we won't see that until all other commands have also been run. */ int last_status = proc_get_last_status(); - for (wcstring_list_t::const_iterator it = m.commands.begin(), end = m.commands.end(); it != end; it++) + for (wcstring_list_t::const_iterator it = m.commands.begin(), end = m.commands.end(); it != end; ++it) { parser_t::principal_parser().eval(it->c_str(), io_chain_t(), TOP); } |