Skip to content

Commit fb90d07

Browse files
committed
Use std::array instead of C-array 2.
1 parent e1beffe commit fb90d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PWGCF/TableProducer/filter2Prong.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ struct Filter2Prong {
133133
sigmaFormula = std::make_unique<TFormula>("sigmaFormula", cfgImSigmaFormula.value.c_str());
134134
// could do SetParameter(name,value) directly, but pre-lookup of the names will result in faster process
135135
std::array<std::string, 4> pars = {"p", "sTPC", "sTOF", "hasTOF"};
136-
std::fill_n(sigmaFormulaParamIndex, std::size(sigmaFormulaParamIndex), ~0u);
136+
std::fill_n(sigmaFormulaParamIndex.begin(), std::size(sigmaFormulaParamIndex), ~0u);
137137
for (uint i = 0, n = sigmaFormula->GetNpar(); i < n; ++i) {
138138
auto m = std::find(pars.begin(), pars.end(), sigmaFormula->GetParName(i));
139139
if (m != pars.end())

0 commit comments

Comments
 (0)