diff --git a/src/input.cpp b/src/input.cpp index c29566dd9..1dc5b979d 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -377,9 +377,7 @@ void inputter_t::mapping_execute(const input_mapping_t &m, bool allow_commands) return; // skip the input_set_bind_mode } 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 (auto it = m.commands.rbegin(), end = m.commands.rend(); it != end; ++it) { readline_cmd_t code = input_function_get_code(*it).value(); function_push_args(code); event_queue_.push_front(char_event_t(code, m.seq)); @@ -564,7 +562,7 @@ bool input_mapping_set_t::erase(const wcstring &sequence, const wcstring &mode, bool result = false; mapping_list_t &ml = user ? mapping_list_ : preset_mapping_list_; - for (std::vector::iterator it = ml.begin(), end = ml.end(); it != end; ++it) { + for (auto it = ml.begin(), end = ml.end(); it != end; ++it) { if (sequence == it->seq && mode == it->mode) { ml.erase(it); result = true;