From 586d0e6ee60646ab281bebe3d0a0e546f721fdb5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 18 Feb 2020 23:21:11 +0100 Subject: [PATCH] Make wxGrid::GetBatchCount() const There is really no reason for this simple accessor not to be const. --- include/wx/generic/grid.h | 2 +- interface/wx/grid.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 0d3ee0a10e..d249230de9 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -1235,7 +1235,7 @@ public: void BeginBatch() { m_batchCount++; } void EndBatch(); - int GetBatchCount() { return m_batchCount; } + int GetBatchCount() const { return m_batchCount; } virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL) wxOVERRIDE; diff --git a/interface/wx/grid.h b/interface/wx/grid.h index 78df3091df..8999c5e694 100644 --- a/interface/wx/grid.h +++ b/interface/wx/grid.h @@ -4991,7 +4991,7 @@ public: (yet) matching calls to EndBatch(). While the grid's batch count is greater than zero the display will not be updated. */ - int GetBatchCount(); + int GetBatchCount() const; /** Returns the total number of grid columns.