Mercurial > hg > svcore
diff data/model/RangeSummarisableTimeValueModel.h @ 1766:85b9b466a59f
Merge from branch by-id
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 14:24:51 +0100 |
parents | c3b5564cfb78 |
children |
line wrap: on
line diff
--- a/data/model/RangeSummarisableTimeValueModel.h Thu Jun 20 14:58:20 2019 +0100 +++ b/data/model/RangeSummarisableTimeValueModel.h Wed Jul 17 14:24:51 2019 +0100 @@ -41,10 +41,11 @@ public: Range() : m_new(true), m_min(0.f), m_max(0.f), m_absmean(0.f) { } - Range(const Range &r) : - m_new(true), m_min(r.m_min), m_max(r.m_max), m_absmean(r.m_absmean) { } Range(float min, float max, float absmean) : - m_new(true), m_min(min), m_max(max), m_absmean(absmean) { } + m_new(false), m_min(min), m_max(max), m_absmean(absmean) { } + + Range(const Range &r) =default; + Range &operator=(const Range &) =default; float min() const { return m_min; } float max() const { return m_max; }