From: Georg Baum Date: Tue, 11 Nov 2014 06:22:14 +0000 (+0100) Subject: Prevent accidental usage of wrong copy constructor X-Git-Tag: 2.2.0alpha1~1550 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8f93600d3fa8182ba43973075cf37e7ecb2be8d3;p=features.git Prevent accidental usage of wrong copy constructor --- diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp index 103428a2d5..37e26a8b86 100644 --- a/src/Paragraph.cpp +++ b/src/Paragraph.cpp @@ -282,6 +282,10 @@ private: class Paragraph::Private { + // Enforce our own "copy" constructor by declaring the standard one and + // the assignment operator private without implementing them. + Private(Private const &); + Private & operator=(Private const &); public: /// Private(Paragraph * owner, Layout const & layout);