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

recommended by clang-tidy

parent 11c766e5
No related branches found
No related tags found
1 merge request!2184cleanup as suggested by clang-tidy
......@@ -53,7 +53,7 @@ SourceItem::SourceItem()
m_intensity.init("Intensity", "Beam intensity in neutrons/photons per sec.", 1e8, 3,
RealLimits::limited(0.0, 1e32), "intensity");
m_azimuthalAngleItem.reset(new BeamAzimuthalAngleItem());
m_azimuthalAngleItem = std::make_unique<BeamAzimuthalAngleItem>();
m_footprint.init("Type", "Footprint type", FootprintItemCatalog::Type::Gaussian);
}
......@@ -202,8 +202,8 @@ void SourceItem::setFootprint(const IFootprint* footprint)
BeamItem::BeamItem()
{
m_wavelengthItem.reset(new BeamWavelengthItem);
m_inclinationAngleItem.reset(new BeamInclinationAngleItem);
m_wavelengthItem = std::make_unique<BeamWavelengthItem>();
m_inclinationAngleItem = std::make_unique<BeamInclinationAngleItem>();
}
void BeamItem::writeTo(QXmlStreamWriter* w) const
......
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