diff --git a/Framework/DataObjects/inc/MantidDataObjects/EventWorkspace.h b/Framework/DataObjects/inc/MantidDataObjects/EventWorkspace.h index 270b697a9ffb19d13877b5f844d33021ab4a7247..4c3daf5d0e467a7fe02eac66729439a80b003245 100644 --- a/Framework/DataObjects/inc/MantidDataObjects/EventWorkspace.h +++ b/Framework/DataObjects/inc/MantidDataObjects/EventWorkspace.h @@ -92,7 +92,7 @@ public: Mantid::Types::Core::DateAndTime getTimeAtSampleMax(double tofOffset = 0) const override; - double getEventMatrixWorkXMin() const; + double getEventXMin() const; double getEventXMax() const; void getEventXMinMax(double &xmin, double &xmax) const; diff --git a/Framework/TestHelpers/inc/MantidTestHelpers/FakeObjects.h b/Framework/TestHelpers/inc/MantidTestHelpers/FakeObjects.h index d6f3098374ce747982c6e720c4a151ce21eb6bf6..69c47b0dba790b3428028bf1326b084a7f5c34e3 100644 --- a/Framework/TestHelpers/inc/MantidTestHelpers/FakeObjects.h +++ b/Framework/TestHelpers/inc/MantidTestHelpers/FakeObjects.h @@ -199,7 +199,7 @@ protected: throw std::runtime_error( "Cloning of AxeslessWorkspaceTester is not implemented."); } - +public: bool isCommonBins() const override { if (!m_isCommonBinsFlagSet) { m_isCommonBinsFlag = true; @@ -208,9 +208,9 @@ protected: // error if (numHist > 1) { // First check if the x-axis shares a common cow_ptr. - auto first = data[0]->ptrX(); - for (const auto &st : data) { - if (st->ptrX() != first) { + auto first = m_vec[0].ptrX(); + for (const auto &st : m_vec) { + if (st.ptrX() != first) { m_isCommonBinsFlag = false; break; }