Commit 525ac667 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by operator for beamline

Simplify Eiger::removeAllCorr

parent 33594f54
Pipeline #17992 failed with stages
in 14 seconds
......@@ -1460,11 +1460,8 @@ void Eiger::removeCorr(CorrBase *corr)
void Eiger::removeAllCorr()
{
DEB_MEMBER_FUNCT();
CorrList::reverse_iterator it, end = m_corr_list.rend();
for (it = m_corr_list.rbegin(); it != end; ++it)
delete *it;
if (m_corr_list.size() > 0)
THROW_HW_ERROR(Error) << "Correction list not empty!";
while (m_corr_list.size() > 0)
delete *m_corr_list.rbegin();
}
double Eiger::getBorderCorrFactor(int det, int line)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment