]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/memcheck/memcheck.cpp
Corrections in light of recent toolbar and other changes
[wxWidgets.git] / samples / memcheck / memcheck.cpp
index 923f06f87d691517c29371c8b88f2da4628b5221..54712a16f489e8aee432b2033112783b929dcb17 100644 (file)
@@ -25,7 +25,7 @@
 #include "wx/wx.h"
 #endif
 
 #include "wx/wx.h"
 #endif
 
-#include "wx/date.h"
+#include "wx/datetime.h"
 
 #if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
 #include "mondrian.xpm"
 
 #if defined(__WXGTK__) || defined(__WXMOTIF__) || defined(__WXMAC__)
 #include "mondrian.xpm"
@@ -86,7 +86,10 @@ bool MyApp::OnInit(void)
   wxDebugContext::SetCheckpoint();
 
   wxString *thing = new wxString;
   wxDebugContext::SetCheckpoint();
 
   wxString *thing = new wxString;
-  wxDate* date = new wxDate;
+
+#if wxUSE_DATETIME
+  wxDateTime* date = new wxDateTime;
+#endif // wxUSE_DATETIME
 
   // non-object allocation
   char *ordinaryNonObject = new char[1000];
 
   // non-object allocation
   char *ordinaryNonObject = new char[1000];