]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/widgets.cpp
don't readd items in SetImageList() after changing the control mode, they are suppose...
[wxWidgets.git] / samples / widgets / widgets.cpp
index b3da0a0d2c130ddd097ca18918f1de84145262b6..b766c1c0cc1daff5da05f7211be733c255aeb1e9 100644 (file)
@@ -229,6 +229,9 @@ public:
     }
 
 private:
+    wxSUPPRESS_DOLOG_HIDE_WARNING()
+    wxSUPPRESS_DOLOGSTRING_HIDE_WARNING()
+
     // implement sink functions
     virtual void DoLog(wxLogLevel level, const wxString& str, time_t t)
     {
@@ -237,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
         {