Skip to content
Snippets Groups Projects
Commit 68cc5649 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MatL] Ehlers; Use make_unique.

parent 551bc32b
No related branches found
No related tags found
No related merge requests found
...@@ -190,9 +190,8 @@ std::unique_ptr<SolidEhlers<DisplacementDim>> createEhlers( ...@@ -190,9 +190,8 @@ std::unique_ptr<SolidEhlers<DisplacementDim>> createEhlers(
auto const nonlinear_solver_parameters = auto const nonlinear_solver_parameters =
createNewtonRaphsonSolverParameters(nonlinear_solver_config); createNewtonRaphsonSolverParameters(nonlinear_solver_config);
return std::unique_ptr<SolidEhlers<DisplacementDim>>{ return std::make_unique<SolidEhlers<DisplacementDim>>(
new SolidEhlers<DisplacementDim>{nonlinear_solver_parameters, mp, nonlinear_solver_parameters, mp, std::move(ehlers_damage_properties));
std::move(ehlers_damage_properties)}};
} }
} // namespace Ehlers } // namespace Ehlers
......
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