mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
remove user-defined copy constructor
We need to define our own copy constructor only if an object has pointers or any runtime allocation of the resource like file handle, a network connection..etc. note: Default constructor does only shallow copy.
This commit is contained in:
committed by
Laurent Trinques
parent
9085c6fcda
commit
803414f716
@@ -29,16 +29,6 @@ TitleBlockTemplateCellsSet::TitleBlockTemplateCellsSet(const TitleBlockTemplateV
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
Copy constructor
|
||||
@param copy TitleBlockTemplateCellsSet object to copy
|
||||
*/
|
||||
TitleBlockTemplateCellsSet::TitleBlockTemplateCellsSet(const TitleBlockTemplateCellsSet ©) :
|
||||
QList<TitleBlockTemplateVisualCell *>(copy),
|
||||
parent_view_(copy.parent_view_)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
Destructor
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,6 @@ class TitleBlockTemplateCellsSet : public QList<TitleBlockTemplateVisualCell *>
|
||||
// Constructors, destructor
|
||||
public:
|
||||
TitleBlockTemplateCellsSet(const TitleBlockTemplateView *);
|
||||
TitleBlockTemplateCellsSet(const TitleBlockTemplateCellsSet &);
|
||||
virtual ~TitleBlockTemplateCellsSet();
|
||||
|
||||
// methods
|
||||
|
||||
Reference in New Issue
Block a user