Make RowRanges::GetSize() inline

No real changes.
This commit is contained in:
Vadim Zeitlin
2018-12-07 04:00:35 +01:00
parent 85557d818d
commit 9eea5cae23
2 changed files with 7 additions and 7 deletions

View File

@@ -56,7 +56,13 @@ public:
not including given row. not including given row.
*/ */
unsigned int CountTo(unsigned int row) const; unsigned int CountTo(unsigned int row) const;
unsigned int GetSize() const; // for debugging statistics
/**
Returns the size of the range.
This is only used for testing and debugging.
*/
unsigned int GetSize() const { return m_ranges.size(); }
private: private:
wxVector<RowRange> m_ranges; wxVector<RowRange> m_ranges;

View File

@@ -191,12 +191,6 @@ unsigned int RowRanges::CountTo(unsigned int row) const
return ctr; return ctr;
} }
unsigned int RowRanges::GetSize() const // for debugging statistics
{
return m_ranges.size();
}
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// HeightCache // HeightCache
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------