From 434e978b8f0850d7e0b81ad0929af8a75f378225 Mon Sep 17 00:00:00 2001 From: Federico Montesino Pouzols <federico.montesino-pouzols@stfc.ac.uk> Date: Sun, 24 May 2015 17:01:44 +0100 Subject: [PATCH] fix uninit coverity issue 1075317, re #11829 --- .../inc/MantidWorkflowAlgorithms/AlignAndFocusPowder.h | 2 +- .../Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Code/Mantid/Framework/WorkflowAlgorithms/inc/MantidWorkflowAlgorithms/AlignAndFocusPowder.h b/Code/Mantid/Framework/WorkflowAlgorithms/inc/MantidWorkflowAlgorithms/AlignAndFocusPowder.h index 584eb3ce84d..e1072a42ab6 100644 --- a/Code/Mantid/Framework/WorkflowAlgorithms/inc/MantidWorkflowAlgorithms/AlignAndFocusPowder.h +++ b/Code/Mantid/Framework/WorkflowAlgorithms/inc/MantidWorkflowAlgorithms/AlignAndFocusPowder.h @@ -62,7 +62,7 @@ Code Documentation is available at: <http://doxygen.mantidproject.org> */ class DLLExport AlignAndFocusPowder : public API::Algorithm { public: - /// Empty Constructor + /// Constructor AlignAndFocusPowder(); /// Destructor virtual ~AlignAndFocusPowder(); diff --git a/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp b/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp index c06a32117d0..dd00c633272 100644 --- a/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp +++ b/Code/Mantid/Framework/WorkflowAlgorithms/src/AlignAndFocusPowder.cpp @@ -36,7 +36,10 @@ using API::FileProperty; DECLARE_ALGORITHM(AlignAndFocusPowder) AlignAndFocusPowder::AlignAndFocusPowder() - : API::Algorithm(), m_progress(NULL) {} + : API::Algorithm(), m_progress(NULL), m_l1(0.0), m_resampleX(0), + dspace(false), xmin(0.0), xmax(0.0), LRef(0.0), DIFCref(0.0), minwl(0.0), + tmin(0.0), tmax(0.0), m_preserveEvents(false), m_processLowResTOF(false), + m_lowResSpecOffset(0) {} AlignAndFocusPowder::~AlignAndFocusPowder() { if (m_progress) -- GitLab