Fix build failure

std::vector::erase() didn't take const_iterator until C++11 >_<
This commit is contained in:
Kevin Ballard 2014-09-22 21:25:51 -07:00
parent 0a3f220572
commit 80078491bd

View File

@ -794,7 +794,7 @@ bool input_mapping_erase(const wcstring &sequence, const wcstring &mode)
ASSERT_IS_MAIN_THREAD(); ASSERT_IS_MAIN_THREAD();
bool result = false; bool result = false;
for (std::vector<input_mapping_t>::const_iterator it = mapping_list.begin(), end = mapping_list.end(); for (std::vector<input_mapping_t>::iterator it = mapping_list.begin(), end = mapping_list.end();
it != end; it != end;
++it) ++it)
{ {