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:
Simon De Backer
2020-06-07 13:33:13 +02:00
committed by Laurent Trinques
parent 9085c6fcda
commit 803414f716
6 changed files with 0 additions and 40 deletions

View File

@@ -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()
{}