commit 2a2019d77e936e46c1ae8f49142bd1ad89aef2d3 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Wed Nov 6 10:36:21 2019 +0100
Constify and un-constify --- src/Session.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Session.cpp b/src/Session.cpp index 3947883..3bb9c03 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); @@ -235,7 +235,7 @@ void LastFilePosSection::save(FilePos const & pos) LastFilePosSection::FilePos LastFilePosSection::load(FileName const & fname) const { - for (auto & fp : lastfilepos) + for (auto const & fp : lastfilepos) if (fp.file == fname) // Has position information, return it. return fp; -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs