Skip to content

Commit

Permalink
Re #4158. Missed a lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Apr 2, 2012
1 parent c57c1d3 commit 7f54cea
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Code/Mantid/Framework/CurveFitting/src/Fit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ namespace CurveFitting

// Register the class into the algorithm factory
DECLARE_ALGORITHM(Fit)

namespace
{
bool isStringEmpty(const std::string& str){return str.empty();}
}

/// Sets documentation strings for this algorithm
void Fit::initDocs()
Expand Down Expand Up @@ -259,7 +264,7 @@ namespace CurveFitting
*it = "";
}
}
std::remove_if(costFuncOptions.begin(),costFuncOptions.end(),([](std::string& str)->bool{return str.empty();}));
std::remove_if(costFuncOptions.begin(),costFuncOptions.end(),isStringEmpty);
declareProperty("CostFunction","Least squares",
Kernel::IValidator_sptr(new Kernel::ListValidator<std::string>(costFuncOptions)),
"The cost function to be used for the fit, default is Least squares", Kernel::Direction::InOut);
Expand Down

0 comments on commit 7f54cea

Please sign in to comment.