Skip to content
Snippets Groups Projects
Commit b68984ef authored by Moore's avatar Moore
Browse files

CorrectFlightPaths use operator+= instead of std::transform re #16612

parent 73a17310
No related merge requests found
......@@ -116,8 +116,7 @@ void CorrectFlightPaths::exec() {
auto edges = m_outputWS->binEdges(i);
auto &X = m_outputWS->mutableX(i);
std::transform(edges.cbegin(), edges.cbegin() + numberOfChannels + 1,
X.begin(), [=](const double &x) { return x - deltaTOF; });
m_outputWS->mutableX(i) += -deltaTOF;
prog.report("Aligning elastic line...");
PARALLEL_END_INTERUPT_REGION
......
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