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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user