Make branch compilable in C++98 mode again.

This commit is contained in:
Pavel Sanda 2019-11-06 09:53:28 +01:00
parent d045a6ce0c
commit 69031bb2ce

View File

@ -221,7 +221,7 @@ void LastFilePosSection::save(FilePos const & pos)
{ {
// Remove element if it was already present. Iterating should // Remove element if it was already present. Iterating should
// not be a problem since the list is small (<100 elements). // not be a problem since the list is small (<100 elements).
for (FilePosList::const_iterator it = lastfilepos.begin(); for (FilePosList::iterator it = lastfilepos.begin();
it != lastfilepos.end(); ++it) it != lastfilepos.end(); ++it)
if (it->file == pos.file) { if (it->file == pos.file) {
lastfilepos.erase(it); lastfilepos.erase(it);