Skip to content
Snippets Groups Projects
Commit fa83baf7 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

prefer cloning in initializer

parent 30feb76c
No related branches found
No related tags found
1 merge request!1837RectangularDetector members -> unique pointers, and other unification and cleanup of detector-related code
......@@ -77,10 +77,9 @@ IDetector::IDetector(const IDetector& other)
, m_explicitROI(other.m_explicitROI)
, m_axes(other.m_axes)
, m_polAnalyzer(other.m_polAnalyzer)
, m_resolution(other.m_resolution ? other.m_resolution->clone() : nullptr)
, m_mask(other.m_mask)
{
if (other.m_resolution)
setDetectorResolution(*other.m_resolution);
}
IDetector::~IDetector() = default;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment