diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index a1ded8b8bb..9ae19728fa 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -2479,7 +2479,7 @@ void wxWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event) // using them. wxSize wxWindowBase::GetDlgUnitBase() const { - const wxWindow *parent = wxGetTopLevelParent((wxWindow*)this); + const wxWindowBase * const parent = wxGetTopLevelParent((wxWindow*)this); if ( !parent->m_font.IsOk() ) {