mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 19:07:45 +00:00
Prevent accidental usage of wrong copy constructor
This commit is contained in:
parent
ec84cbfb44
commit
8f93600d3f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user