[LyX/2.3.x] Make branch compilable in C++98 mode again.
Pavel Sanda
sanda at lyx.org
Wed Nov 6 08:40:22 UTC 2019
commit 69031bb2cea38735dac415e73518266a794b903a
Author: Pavel Sanda <sanda at lyx.org>
Date: Wed Nov 6 09:53:28 2019 +0100
Make branch compilable in C++98 mode again.
---
src/Session.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/Session.cpp b/src/Session.cpp
index 3947883..620333a 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);
More information about the lyx-cvs
mailing list