Use const wxWindow in wxSystemSettings::GetMetric

This commit is contained in:
Maarten Bent
2019-07-14 20:14:02 +02:00
parent b87a599f07
commit e32c20ffcc
14 changed files with 17 additions and 19 deletions

View File

@@ -2718,8 +2718,7 @@ PRectangle wxSTCListBox::GetDesiredRect() const
// Add space for a scrollbar if needed.
if ( count > desiredVisibleRows )
maxw += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X,
const_cast<wxWindow*>(wxDynamicCast(this, wxWindow)));
maxw += wxSystemSettings::GetMetric(wxSYS_VSCROLL_X, this);
// Add borders.
maxw += 2 * m_borderSize;