Skip to content

Commit

Permalink
Fix coverity warning about variable initiliaization.
Browse files Browse the repository at this point in the history
Refs #10470
  • Loading branch information
martyngigg committed Nov 3, 2014
1 parent fa84104 commit 16939fe
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions Code/Mantid/Framework/MDAlgorithms/src/SXDMDNorm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,18 @@ namespace Mantid
// Register the algorithm into the AlgorithmFactory
DECLARE_ALGORITHM(SXDMDNorm)



//----------------------------------------------------------------------------------------------
/** Constructor
*/
SXDMDNorm::SXDMDNorm()
SXDMDNorm::SXDMDNorm() :
m_nDims(0), m_normWS(), m_inputWS(), hMin(0.0f), hMax(0.0f),
kMin(0.0f), kMax(0.0f), lMin(0.0f), lMax(0.0f), hIntegrated(true),
kIntegrated(true), lIntegrated(true), transf(3,3),
KincidentMin(0.0), KincidentMax(EMPTY_DBL()), hIndex(-1), kIndex(-1), lIndex(-1),
m_hX(), m_kX(), m_lX()
{
hIndex = -1;
kIndex = -1;
lIndex = -1;
hIntegrated = true;
kIntegrated = true;
lIntegrated = true;
m_nDims = 0;
transf = Mantid::Kernel::DblMatrix(3,3);
KincidentMin = 0;
KincidentMax = EMPTY_DBL();
}

//----------------------------------------------------------------------------------------------
/** Destructor
*/
SXDMDNorm::~SXDMDNorm()
{
}


//----------------------------------------------------------------------------------------------


/// Algorithm's version for identification. @see Algorithm::version
int SXDMDNorm::version() const { return 1; }

Expand Down

0 comments on commit 16939fe

Please sign in to comment.