mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +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
|
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:
|
public:
|
||||||
///
|
///
|
||||||
Private(Paragraph * owner, Layout const & layout);
|
Private(Paragraph * owner, Layout const & layout);
|
||||||
|
Loading…
Reference in New Issue
Block a user