Declare functions as const

This commit is contained in:
Artur Wieczorek 2022-05-27 18:56:41 +02:00
parent 2aa6259aa4
commit e7fac13461
2 changed files with 3 additions and 3 deletions

View File

@ -1313,7 +1313,7 @@ public:
// Returns true if given event is from first of an array of buttons
// (as can be in case when wxPGMultiButton is used).
bool IsMainButtonEvent( const wxEvent& event )
bool IsMainButtonEvent( const wxEvent& event ) const
{
return (event.GetEventType() == wxEVT_BUTTON)
&& (m_wndSecId == event.GetId());
@ -1839,7 +1839,7 @@ protected:
return KeyEventToActions(event, NULL);
}
void ImprovedClientToScreen( int* px, int* py );
void ImprovedClientToScreen( int* px, int* py ) const;
// Called by focus event handlers. newFocused is the window that becomes
// focused.

View File

@ -3822,7 +3822,7 @@ wxSize wxPropertyGrid::GetImageSize( wxPGProperty* p, int item ) const
// -----------------------------------------------------------------------
// takes scrolling into account
void wxPropertyGrid::ImprovedClientToScreen( int* px, int* py )
void wxPropertyGrid::ImprovedClientToScreen( int* px, int* py ) const
{
wxASSERT(px && py);
CalcScrolledPosition(*px, *py, px, py);