Le 06/11/2019 à 09:40, Pavel Sanda a écrit :
commit 69031bb2cea38735dac415e73518266a794b903a
Author: Pavel Sanda <sa...@lyx.org>
Date:   Wed Nov 6 09:53:28 2019 +0100

     Make branch compilable in C++98 mode again.

You mean with gcc 4.6, right? This is not really C++98 but C++0x.

In any case, it seems more reasonable to use a non-const iterator here. I will do the same change in master.

JMarc

---
  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);


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to