Commit 683f6c22 authored by David Fairbrother's avatar David Fairbrother
Browse files

Apply Clang-formatting

parent 3fbdbd9c
......@@ -37,9 +37,8 @@ void Minus::performBinaryOperation(const HistogramData::Histogram &lhs,
// Only do E if non-zero, otherwise just copy
if (rhsE != 0) {
double rhsE2 = rhsE * rhsE;
std::transform(
lhs.e().begin(), lhs.e().end(), EOut.begin(),
[rhsE2](double l) { return std::sqrt(l * l + rhsE2); });
std::transform(lhs.e().begin(), lhs.e().end(), EOut.begin(),
[rhsE2](double l) { return std::sqrt(l * l + rhsE2); });
} else
EOut = lhs.e();
}
......
......@@ -41,9 +41,8 @@ void Plus::performBinaryOperation(const HistogramData::Histogram &lhs,
if (rhsE != 0.) {
double rhsE2 = rhsE * rhsE;
std::transform(
lhs.e().begin(), lhs.e().end(), EOut.begin(),
[rhsE2](double l) { return std::sqrt(l * l + rhsE2); });
std::transform(lhs.e().begin(), lhs.e().end(), EOut.begin(),
[rhsE2](double l) { return std::sqrt(l * l + rhsE2); });
} else
EOut = lhs.e();
}
......
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