From 3bd87e5a6402b90f834fca67900ca9236301afa4 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 24 Aug 2011 19:10:40 +0000 Subject: [PATCH] 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 --- src/Buffer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Buffer.h b/src/Buffer.h index a6db5ec010..273123a5e6 100644 --- a/src/Buffer.h +++ b/src/Buffer.h @@ -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.