]> git.lyx.org Git - features.git/commitdiff
Make branch compilable in C++98 mode again.
authorPavel Sanda <sanda@lyx.org>
Wed, 6 Nov 2019 08:53:28 +0000 (09:53 +0100)
committerPavel Sanda <sanda@lyx.org>
Wed, 6 Nov 2019 08:53:28 +0000 (09:53 +0100)
src/Session.cpp

index 394788381ee38bbc6d78a33912677cf02a99c2d3..620333a1faa0d25166815133ad3affef71405c5e 100644 (file)
@@ -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);