From: Vadim Zeitlin Date: Sat, 7 Mar 2009 14:25:38 +0000 (+0000) Subject: use wxLog::Log() instead of ugly cast X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9be5555cdecbac57235b4ac8e79fbdad208b1d8e use wxLog::Log() instead of ugly cast git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/widgets/widgets.cpp b/samples/widgets/widgets.cpp index 66db807aae..b766c1c0cc 100644 --- a/samples/widgets/widgets.cpp +++ b/samples/widgets/widgets.cpp @@ -240,10 +240,7 @@ private: if ( level == wxLOG_Trace ) { if ( m_logOld ) - { - // cast is needed to call protected method - ((LboxLogger *)m_logOld)->DoLog(level, str, t); - } + m_logOld->Log(level, str, t); } else {