Skip to content
Snippets Groups Projects
Commit 23e09775 authored by Antti Soininen's avatar Antti Soininen
Browse files

Code beautification.

Re #20898
parent eea2ac4b
No related branches found
No related tags found
No related merge requests found
......@@ -277,8 +277,8 @@ void CalculatePolynomialBackground::init() {
declareProperty(Kernel::make_unique<Kernel::ArrayProperty<double>>(
Prop::XRANGES, std::vector<double>(), orderedPairs),
"A list of fitting ranges given as pairs of X values.");
std::array<std::string, 2> costFuncOpts{{CostFunc::WEIGHTED_LEAST_SQUARES,
CostFunc::UNWEIGHTED_LEAST_SQUARES}};
std::array<std::string, 2> costFuncOpts{
{CostFunc::WEIGHTED_LEAST_SQUARES, CostFunc::UNWEIGHTED_LEAST_SQUARES}};
declareProperty(
Prop::COST_FUNCTION, CostFunc::WEIGHTED_LEAST_SQUARES.c_str(),
boost::make_shared<Kernel::ListValidator<std::string>>(costFuncOpts),
......
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