X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FSession.h;h=04299b2569286e4947edca102e27feaa8758d201;hb=0b67e103e97a0c12fd18382152d762fc8d95dff1;hp=25172b3094f582e4e120f60d4f7dc1124042e3e5;hpb=d1e3d75da226311cb290fc4be3686d6deef7b967;p=lyx.git diff --git a/src/Session.h b/src/Session.h index 25172b3094..04299b2569 100644 --- a/src/Session.h +++ b/src/Session.h @@ -16,10 +16,9 @@ #include "support/FileName.h" #include "support/types.h" +#include #include -#include #include -#include /** This session file maintains 1. the latest documents loaded (lastfiles) @@ -58,7 +57,7 @@ class LastFilesSection : SessionSection { public: /// - typedef std::deque LastFiles; + typedef std::vector LastFiles; public: /// @@ -70,10 +69,10 @@ public: /// void write(std::ostream & os) const; - /// Return lastfiles container (deque) + /// Return lastfiles container (vector) LastFiles const lastFiles() const { return lastfiles; } - /** Insert #file# into the lastfile dequeue. + /** Insert #file# into the lastfile vector. This funtion inserts #file# into the last files list. If the file already exists it is moved to the top of the list, else exist it is placed on the top of the list. If the list is full the last @@ -168,7 +167,7 @@ public: /** add cursor position to the fname entry in the filepos map @param fname file entry for which to save position information - @param pos position of the cursor when the file is closed. + @param pos position of the cursor when the BufferView is closed. */ void save(support::FileName const & fname, FilePos const & pos);