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
@@ -116,26 +116,6 @@ DiagramContent::DiagramContent(Diagram *diagram, bool selected) :
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DiagramContent::DiagramContent
|
||||
* Copy constructor
|
||||
* @param other
|
||||
*/
|
||||
DiagramContent::DiagramContent(const DiagramContent &other) :
|
||||
m_elements(other.m_elements),
|
||||
m_text_fields(other.m_text_fields),
|
||||
m_images(other.m_images),
|
||||
m_shapes(other.m_shapes),
|
||||
m_conductors_to_update(other.m_conductors_to_update),
|
||||
m_conductors_to_move(other.m_conductors_to_move),
|
||||
m_other_conductors(other.m_other_conductors),
|
||||
m_potential_conductors(other.m_potential_conductors),
|
||||
m_element_texts(other.m_element_texts),
|
||||
m_texts_groups(other.m_texts_groups),
|
||||
m_selected_items(other.m_selected_items),
|
||||
m_tables(other.m_tables)
|
||||
{}
|
||||
|
||||
DiagramContent::~DiagramContent()
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user