Make wxGrid::GetBatchCount() const

There is really no reason for this simple accessor not to be const.
This commit is contained in:
Vadim Zeitlin
2020-02-18 23:21:11 +01:00
parent 15de1a4cf4
commit 586d0e6ee6
2 changed files with 2 additions and 2 deletions

View File

@@ -1235,7 +1235,7 @@ public:
void BeginBatch() { m_batchCount++; } void BeginBatch() { m_batchCount++; }
void EndBatch(); void EndBatch();
int GetBatchCount() { return m_batchCount; } int GetBatchCount() const { return m_batchCount; }
virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL) wxOVERRIDE; virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL) wxOVERRIDE;

View File

@@ -4991,7 +4991,7 @@ public:
(yet) matching calls to EndBatch(). While the grid's batch count is (yet) matching calls to EndBatch(). While the grid's batch count is
greater than zero the display will not be updated. greater than zero the display will not be updated.
*/ */
int GetBatchCount(); int GetBatchCount() const;
/** /**
Returns the total number of grid columns. Returns the total number of grid columns.