From 09b61d999d675f493a6e512a9b289d894fd73f58 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 11 Apr 2000 16:10:25 +0000 Subject: [PATCH] const cast inside WXWIN_COMPATIBILITY git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/control.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/msw/control.h b/include/wx/msw/control.h index f1ce9942e1..9ecbab3dfb 100644 --- a/include/wx/msw/control.h +++ b/include/wx/msw/control.h @@ -120,8 +120,8 @@ private: #if WXWIN_COMPATIBILITY inline void wxControl::Callback(const wxFunction f) { m_callback = f; }; - inline wxFont& wxControl::GetLabelFont() const { return GetFont(); } - inline wxFont& wxControl::GetButtonFont() const { return GetFont(); } + inline wxFont& wxControl::GetLabelFont() const { return (wxFont &)GetFont(); } + inline wxFont& wxControl::GetButtonFont() const { return (wxFont &)GetFont(); } inline void wxControl::SetLabelFont(const wxFont& font) { SetFont(font); } inline void wxControl::SetButtonFont(const wxFont& font) { SetFont(font); } #endif // WXWIN_COMPATIBILITY -- 2.50.0