diff --git a/Framework/HistogramData/inc/MantidHistogramData/HistogramItem.h b/Framework/HistogramData/inc/MantidHistogramData/HistogramItem.h index 39926be96eef442949100841d25c55d900e1a83b..724d6cde7386b5b411c8bbd2d15cf0b463286cf6 100644 --- a/Framework/HistogramData/inc/MantidHistogramData/HistogramItem.h +++ b/Framework/HistogramData/inc/MantidHistogramData/HistogramItem.h @@ -167,7 +167,6 @@ private: HistogramItem(const Histogram &histogram, const size_t index) : m_histogram(histogram), m_index(index) {} - bool xModeIsPoints() const { return Histogram::XMode::Points == m_histogram.xMode(); } diff --git a/Framework/HistogramData/src/Histogram.cpp b/Framework/HistogramData/src/Histogram.cpp index a6ecbfaa841558445115bc36b0152e1a812c6727..c2d4bc5df289b821e26ad980826da6b24e4116fd 100644 --- a/Framework/HistogramData/src/Histogram.cpp +++ b/Framework/HistogramData/src/Histogram.cpp @@ -286,11 +286,11 @@ void Histogram::resize(size_t n) { } HistogramIterator Histogram::begin() const { - return HistogramIterator(*this, 0); + return HistogramIterator(*this, 0); } HistogramIterator Histogram::end() const { - return HistogramIterator(*this, size()); + return HistogramIterator(*this, size()); } } // namespace HistogramData diff --git a/Framework/HistogramData/test/HistogramIteratorTest.h b/Framework/HistogramData/test/HistogramIteratorTest.h index 2ea0576cbd26b57a1c46f9adaf56cfd2bbdabfbb..4a7c707d281ebcc220ee72d31b82453465f5880d 100644 --- a/Framework/HistogramData/test/HistogramIteratorTest.h +++ b/Framework/HistogramData/test/HistogramIteratorTest.h @@ -293,7 +293,7 @@ public: void test_convert_counts_to_frequency_once_per_histogram() { double total = 0; for (size_t i = 0; i < nHists; i++) { - const auto& frequencies = m_hist.frequencies(); + const auto &frequencies = m_hist.frequencies(); for (auto &frequency : frequencies) total += frequency; } @@ -312,8 +312,8 @@ public: void test_convert_counts_to_frequency_once_per_histogram_sparse() { double total = 0; for (size_t i = 0; i < nHists; i++) { - const auto& counts = m_hist.counts(); - const auto& frequencies = m_hist.frequencies(); + const auto &counts = m_hist.counts(); + const auto &frequencies = m_hist.frequencies(); for (size_t j = 0; j < histSize; ++j) if (counts[j] > histSize - 5) total += frequencies[j];