X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBuffer.cpp;h=e2185fbd897a18711e63f3a4c0335fa66ad007d9;hb=1639abb8edaa492c649e69d093436f8a96f07bec;hp=37dcbca01475f44539f97ec4a5b3f3e1b8808340;hpb=5c2d04999619f8b8890d931e28c133212ce20fd0;p=lyx.git diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 37dcbca014..e2185fbd89 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1321,7 +1321,7 @@ FileName Buffer::getBackupName() const { fn.onlyPath().absFileName() : lyxrc.backupdir_path; string const fform = convert(d->file_format); - string const backname = fname + "-" + fform; + string const backname = fname + "-lyxformat-" + fform; FileName backup(addName(fpath, addExtension(backname, fext))); // limit recursion, just in case @@ -2229,8 +2229,8 @@ void Buffer::getLabelList(vector & list) const list.clear(); shared_ptr toc = d->toc_backend.toc("label"); - TocIterator toc_it = toc->begin(); - TocIterator end = toc->end(); + Toc::const_iterator toc_it = toc->begin(); + Toc::const_iterator end = toc->end(); for (; toc_it != end; ++toc_it) { if (toc_it->depth() == 0) list.push_back(toc_it->str());