Take const wxWindow in wxBitmapBundle::GetPreferredSizeFor()

This function should be usable in const methods of wxWindow-derived
classes too.
This commit is contained in:
Vadim Zeitlin
2021-10-21 00:53:18 +01:00
parent c119e84370
commit e5a7e9ccbd
3 changed files with 3 additions and 3 deletions

View File

@@ -375,7 +375,7 @@ wxSize wxBitmapBundle::GetDefaultSize() const
return m_impl->GetDefaultSize();
}
wxSize wxBitmapBundle::GetPreferredSizeFor(wxWindow* window) const
wxSize wxBitmapBundle::GetPreferredSizeFor(const wxWindow* window) const
{
wxCHECK_MSG( window, wxDefaultSize, "window must be valid" );