]> git.lyx.org Git - features.git/commitdiff
Make the Buffer class non-copyable, otherwise LyX crashes when 'Impl * const d' is...
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 24 Aug 2011 19:10:40 +0000 (19:10 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 24 Aug 2011 19:10:40 +0000 (19:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39515 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.h

index a6db5ec01076935d2cd58ae466487de75fbdcffd..273123a5e6fc001770005a4b438ea473e1ce5f6f 100644 (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.