diff --git a/Framework/WorkflowAlgorithms/src/QENSFitSequential.cpp b/Framework/WorkflowAlgorithms/src/QENSFitSequential.cpp index ae7f65bf5aa1ac555a493f49cbfe1a7c80bdd28e..0adcb72039b1bdb61758c766eaa86e75b180f8eb 100644 --- a/Framework/WorkflowAlgorithms/src/QENSFitSequential.cpp +++ b/Framework/WorkflowAlgorithms/src/QENSFitSequential.cpp @@ -531,14 +531,14 @@ std::vector<std::string> QENSFitSequential::getFitParameterNames() const { std::copy_if( uniqueParameters.begin(), uniqueParameters.end(), std::back_inserter(parameters), - [](const std::string ¶meter) { return isFitParameter(parameter); }); + [&](const std::string ¶meter) { return isFitParameter(parameter); }); return parameters; } std::set<std::string> QENSFitSequential::getUniqueParameterNames() const { IFunction_sptr function = getProperty("Function"); std::set<std::string> nameSet; - for (auto i = 0u; i < functions->nParams(); ++i) + for (auto i = 0u; i < function->nParams(); ++i) nameSet.insert(shortParameterName(function->parameterName(i))); return nameSet; }