From: Pavel Sanda Date: Wed, 6 Nov 2019 08:53:28 +0000 (+0100) Subject: Make branch compilable in C++98 mode again. X-Git-Tag: 2.3.4~31 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=69031bb2cea38735dac415e73518266a794b903a;p=features.git Make branch compilable in C++98 mode again. --- 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);