]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/grid/griddemo.cpp
fix some possible crashes due to uninitialized variables - thanks to Steve Hartwell...
[wxWidgets.git] / samples / grid / griddemo.cpp
index 9464900565567dc776f81a645c44953e5c2ab27d..0fec7527516f6671d0396e40dd90dc1670ec0450 100644 (file)
@@ -246,8 +246,8 @@ GridFrame::GridFrame()
                              wxTE_MULTILINE );
 
     logger = new wxLogTextCtrl( logWin );
-    m_logOld = logger->SetActiveTarget( logger );
-    logger->SetTimestamp( NULL );
+    m_logOld = wxLog::SetActiveTarget( logger );
+    wxLog::SetTimestamp( NULL );
 #endif // wxUSE_LOG
 
     // this will create a grid and, by default, an associated grid