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

rename local var

parent bb2d4172
No related branches found
No related tags found
1 merge request!1040rename IParticle subclasses -> Compound, CoreAndShell
......@@ -43,14 +43,14 @@ double ReCompound::bottom_Z(const IRotation* rotation) const
ASSERT(!m_components.empty());
return BaseUtils::algo::min_value(
m_components.begin(), m_components.end(),
[&rotation](IReParticle* ff) { return ff->bottom_Z(rotation); });
[&rotation](IReParticle* p) { return p->bottom_Z(rotation); });
}
double ReCompound::top_Z(const IRotation* rotation) const
{
ASSERT(!m_components.empty());
return BaseUtils::algo::max_value(m_components.begin(), m_components.end(),
[&rotation](IReParticle* ff) { return ff->top_Z(rotation); });
[&rotation](IReParticle* p) { return p->top_Z(rotation); });
}
void ReCompound::addFormFactor(const IReParticle& formfactor)
......
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