Rename wxGridBlockCoords::ContainsCell() and move it inline

Make the function name more grammatically correct.

No real changes.
This commit is contained in:
Vadim Zeitlin
2020-04-04 19:45:19 +02:00
parent 0a5a904d8d
commit a5952ee087
5 changed files with 13 additions and 17 deletions

View File

@@ -816,10 +816,12 @@ public:
m_leftCol <= other.m_rightCol && m_rightCol >= other.m_leftCol;
}
// Whether the block contains the cell.
// returns @true, if the block contains the cell,
// @false, otherwise
bool ContainCell(const wxGridCellCoords& cell) const;
// Return whether this block contains the given cell.
bool ContainsCell(const wxGridCellCoords& cell) const
{
return m_topRow <= cell.GetRow() && cell.GetRow() <= m_bottomRow &&
m_leftCol <= cell.GetCol() && cell.GetCol() <= m_rightCol;
}
// Whether the blocks contain each other.
// returns 1, if this block contains the other,