Skip to content

Commit

Permalink
Re #10498 Reducing scope of variable sig
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed Dec 3, 2014
1 parent 14790f2 commit 7d552f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/Algorithms/src/PhaseQuadMuon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,11 @@ void PhaseQuadMuon::loseExponentialDecay (API::MatrixWorkspace_sptr tempWs)
outE[i] = oops ? m_bigNumber : specIn->readE()[i]/usey;
}

double s, sx, sy, sig;
double s, sx, sy;
s = sx = sy =0;
for (int i=0; i<m_nData; i++)
{
double sig;
sig = outE[i]*outE[i];
s += 1./sig;
sx+= outX[i]/sig;
Expand Down

0 comments on commit 7d552f2

Please sign in to comment.