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

Save name of variable that is used only once

parent d1da3712
No related branches found
No related tags found
No related merge requests found
...@@ -43,9 +43,9 @@ void DecoratedLayerComputation::eval( ...@@ -43,9 +43,9 @@ void DecoratedLayerComputation::eval(
const std::vector<SimulationElement>::iterator& begin_it, const std::vector<SimulationElement>::iterator& begin_it,
const std::vector<SimulationElement>::iterator& end_it) const const std::vector<SimulationElement>::iterator& end_it) const
{ {
LayerStrategyBuilder builder(*mp_layer, sample, options, m_layout_index, const std::unique_ptr<const IInterferenceFunctionStrategy> p_strategy {
mP_specular_info.get()); LayerStrategyBuilder(*mp_layer, sample, options, m_layout_index, mP_specular_info.get()).
const std::unique_ptr<const IInterferenceFunctionStrategy> p_strategy(builder.createStrategy()); createStrategy() };
double total_surface_density = mp_layer->getTotalParticleSurfaceDensity(m_layout_index); double total_surface_density = mp_layer->getTotalParticleSurfaceDensity(m_layout_index);
for (std::vector<SimulationElement>::iterator it = begin_it; it != end_it; ++it) { for (std::vector<SimulationElement>::iterator it = begin_it; it != end_it; ++it) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment