Skip to content

Commit

Permalink
Reduce scope of variable in SplineSmoothing. Fixes cppcheck error.
Browse files Browse the repository at this point in the history
Refs #8940
  • Loading branch information
martyngigg committed Feb 7, 2014
1 parent 551ef35 commit 087961d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Code/Mantid/Framework/CurveFitting/src/SplineSmoothing.cpp
Expand Up @@ -374,14 +374,13 @@ namespace CurveFitting
//iterate over smoothing points
std::set<int>::const_iterator iter = smoothPts.begin();
int start = *iter;
bool accurate(true);

for(++iter; iter != smoothPts.end(); ++iter)
{
int end = *iter;

//check each point falls within our range of error.
accurate = checkSmoothingAccuracy(start,end,ys.data(),ysmooth.get());
bool accurate = checkSmoothingAccuracy(start,end,ys.data(),ysmooth.get());

//if not, flag for resmoothing and add another point between these two data points
if(!accurate)
Expand Down

0 comments on commit 087961d

Please sign in to comment.