diff --git a/Device/Detector/IDetector.cpp b/Device/Detector/IDetector.cpp index ed6451990cfcbdfecf3698084a424e49bf9f8b34..dee16f00e66c4b83f4a20a6edc58633538be72a0 100644 --- a/Device/Detector/IDetector.cpp +++ b/Device/Detector/IDetector.cpp @@ -76,7 +76,8 @@ IDetector::IDetector(Frame* frame) } IDetector::IDetector(const IDetector& other) - : m_explicitROI(other.m_explicitROI) + : INode() + , m_explicitROI(other.m_explicitROI) , m_frame(other.m_frame->clone()) , m_polAnalyzer(other.m_polAnalyzer) , m_resolution(other.m_resolution ? other.m_resolution->clone() : nullptr) diff --git a/GUI/Model/Sample/MaterialItem.cpp b/GUI/Model/Sample/MaterialItem.cpp index b6636aa28c7119db9b1f08044dffd2ece348320d..1a6177069c605bdf472d7abe40330f06efa34ae6 100644 --- a/GUI/Model/Sample/MaterialItem.cpp +++ b/GUI/Model/Sample/MaterialItem.cpp @@ -55,7 +55,8 @@ MaterialItem::MaterialItem() } MaterialItem::MaterialItem(const MaterialItem& other) - : m_name(other.m_name) + : QObject() + , m_name(other.m_name) , m_id(other.m_id) , m_color(other.m_color) , m_magnetization(other.m_magnetization)