mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Constify and un-constify
This commit is contained in:
parent
668aa17ad7
commit
2a2019d77e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user