]> git.saurik.com Git - wxWidgets.git/commitdiff
use wxLog::Log() instead of ugly cast
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Mar 2009 14:25:38 +0000 (14:25 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Mar 2009 14:25:38 +0000 (14:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/widgets/widgets.cpp

index 66db807aae7a48636cd065d8dd23c97ce3b030ed..b766c1c0cc1daff5da05f7211be733c255aeb1e9 100644 (file)
@@ -240,10 +240,7 @@ private:
         if ( level == wxLOG_Trace )
         {
             if ( m_logOld )
         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
         {
         }
         else
         {