Commit 96abcaa0 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

short local variable

parent e0021a2a
......@@ -98,11 +98,11 @@ std::vector<std::unique_ptr<DiffuseElement>> ISimulation2D::generateElements(con
std::vector<std::unique_ptr<DiffuseElement>> result;
result.reserve(N);
for (size_t element_index = 0; element_index < N; ++element_index)
for (size_t i = 0; i < N; ++i)
result.emplace_back(std::make_unique<DiffuseElement>(
wavelength, alpha_i, phi_i, m_detector_context->createPixel(element_index),
wavelength, alpha_i, phi_i, m_detector_context->createPixel(i),
beam_polMatrices, analyzer_operator,
m_detector_context->detectorIndex(element_index) == spec_index));
m_detector_context->detectorIndex(i) == spec_index));
return result;
}
......
Supports Markdown
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