Skip to content

Commit

Permalink
Re #12033 Set NumericAxis base length to 0 (unused by RefAxis).
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHeybrock committed Jul 2, 2015
1 parent 0cf79e1 commit 02670ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/Framework/API/src/RefAxis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ namespace API {
* @param length :: The length of this axis
* @param parentWorkspace :: A pointer to the workspace that holds this axis
*/
// NumericAxis is set to length 0 since we do not need its internal storage. We
// override public functions of NumericAxis that would access it.
RefAxis::RefAxis(const std::size_t &length,
const MatrixWorkspace *const parentWorkspace)
: NumericAxis(length), m_parentWS(parentWorkspace), m_size(length) {}
: NumericAxis(0), m_parentWS(parentWorkspace), m_size(length) {}

/** Private, specialised copy constructor. Needed because it's necessary to pass
* in
Expand Down

0 comments on commit 02670ee

Please sign in to comment.