Skip to content

Commit

Permalink
Re #9483. Getting rid of cppcheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed May 20, 2014
1 parent 57e1f77 commit c7ed5db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Expand Up @@ -194,8 +194,9 @@ namespace CurveFitting
void copyParametersValues(std::map<std::string, Parameter> source, std::map<std::string, Parameter>& target);

/// Calculate Chi^2
double calculateFunctionChiSquare(const std::vector<double> modelY, const std::vector<double> dataY,
const std::vector<double> dataE);
double calculateFunctionChiSquare(const std::vector<double> &modelY,
const std::vector<double> &dataY,
const std::vector<double> &dataE);

} // namespace CurveFitting
} // namespace Mantid
Expand Down
Expand Up @@ -888,8 +888,8 @@ namespace CurveFitting
//----------------------------------------------------------------------------------------------
/** Calculate Chi^2
*/
double calculateFunctionChiSquare(const vector<double> modelY, const vector<double> dataY,
const vector<double> dataE)
double calculateFunctionChiSquare(const vector<double> &modelY, const vector<double> &dataY,
const vector<double> &dataE)
{
// 1. Check
if (modelY.size() != dataY.size() || dataY.size() != dataE.size())
Expand Down

0 comments on commit c7ed5db

Please sign in to comment.