X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fbufferlist.h;h=efd76c486d23582fe72f881d808ca1caf713f2fd;hb=d4ee9c38b6aa45146f67658352623bcbc3e0ad9b;hp=f186b84e0b135267dfbc7ee9f1690bbebb62ed3d;hpb=da003742d9fbc051024e89241d5796e6403aded9;p=lyx.git diff --git a/src/bufferlist.h b/src/bufferlist.h index f186b84e0b..efd76c486d 100644 --- a/src/bufferlist.h +++ b/src/bufferlist.h @@ -30,7 +30,7 @@ This class should ideally be enclosed inside class BufferList, but that gave me an "internal gcc error". */ -class BufferStorage : public noncopyable { +class BufferStorage : public boost::noncopyable { public: /// typedef std::vector Container; @@ -68,7 +68,7 @@ private: /** The class govern all open buffers. */ -class BufferList : public noncopyable { +class BufferList : public boost::noncopyable { public: /// BufferList(); @@ -120,7 +120,7 @@ public: /// void emergencyWriteAll(); - + /** Close buffer. @param buf the buffer that should be closed @return #false# if operation was canceled @@ -139,7 +139,7 @@ public: /// returns a pointer to the buffer with the given name. Buffer * getBuffer(string const &); /// returns a pointer to the buffer with the given number. - Buffer * getBuffer(int); + Buffer * getBuffer(unsigned int); private: /// @@ -147,6 +147,8 @@ private: /// list_state state_; + /// + void emergencyWrite(Buffer * buf); }; #endif