Rename wxGridBlockCoords::ContainsCell/Block() to just Contains()

These methods do the same thing, so it seems better to use the same name
for them.

This is not really a backwards-incompatible change, as these methods
were just added in the parent commit, so nobody is using them yet.
This commit is contained in:
Vadim Zeitlin
2020-04-15 18:37:06 +02:00
parent a5a7641616
commit e5d03323f9
4 changed files with 16 additions and 19 deletions

View File

@@ -817,14 +817,14 @@ public:
}
// Return whether this block contains the given cell.
bool ContainsCell(const wxGridCellCoords& cell) const
bool Contains(const wxGridCellCoords& cell) const
{
return m_topRow <= cell.GetRow() && cell.GetRow() <= m_bottomRow &&
m_leftCol <= cell.GetCol() && cell.GetCol() <= m_rightCol;
}
// Return whether this blocks fully contains another one.
bool ContainsBlock(const wxGridBlockCoords& other) const
bool Contains(const wxGridBlockCoords& other) const
{
return m_topRow <= other.m_topRow && other.m_bottomRow <= m_bottomRow &&
m_leftCol <= other.m_leftCol && other.m_rightCol <= m_rightCol;