Prevent accidental usage of wrong copy constructor

This commit is contained in:
Georg Baum 2014-11-11 07:22:14 +01:00
parent ec84cbfb44
commit 8f93600d3f

View File

@ -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);