Make the Buffer class non-copyable, otherwise LyX crashes when 'Impl * const d' is deleted while deleting a copy of the Buffer.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39515 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2011-08-24 19:10:40 +00:00
parent d68309ee17
commit 3bd87e5a64

View File

@ -673,7 +673,10 @@ private:
///
void collectChildren(ListOfBuffers & children, bool grand_children) const;
/// noncopyable
Buffer(Buffer const &);
void operator=(Buffer const &);
/// Use the Pimpl idiom to hide the internals.
class Impl;
/// The pointer never changes although *pimpl_'s contents may.