From 69031bb2cea38735dac415e73518266a794b903a Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Wed, 6 Nov 2019 09:53:28 +0100 Subject: [PATCH] Make branch compilable in C++98 mode again. --- src/Session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Session.cpp b/src/Session.cpp index 394788381e..620333a1fa 100644 --- a/src/Session.cpp +++ b/src/Session.cpp @@ -221,7 +221,7 @@ void LastFilePosSection::save(FilePos const & pos) { // Remove element if it was already present. Iterating should // 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) if (it->file == pos.file) { lastfilepos.erase(it); -- 2.39.5