Changed iterators from iter++ to ++iter

Large set of changes to history to ensure that histories from other sessions don't "bleed" into the current session
This commit is contained in:
ridiculousfish
2012-03-01 14:56:34 -08:00
parent 5d18d60e3b
commit fd4df6f9bb
11 changed files with 171 additions and 48 deletions

View File

@@ -136,7 +136,7 @@ wcstring_list_t completions_to_wcstring_list( const std::vector<completion_t> &l
{
wcstring_list_t strings;
strings.reserve(list.size());
for (std::vector<completion_t>::const_iterator iter = list.begin(); iter != list.end(); iter++) {
for (std::vector<completion_t>::const_iterator iter = list.begin(); iter != list.end(); ++iter) {
strings.push_back(iter->completion);
}
return strings;