]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/datetime.inl
Use the OOR typemap for wxTreeCtrls too.
[wxWidgets.git] / include / wx / datetime.inl
index 10e929a22a7349e7c6144d3a1c4a23c3c46786d0..8ec379dd9d2a212f961120789e83e8ed0f6d17d4 100644 (file)
@@ -54,12 +54,12 @@ inline wxDateTime wxDateTime::Now()
 /* static */
 inline wxDateTime wxDateTime::Today()
 {
-    struct tm *tm = GetTmNow();
-    tm->tm_hour =
-    tm->tm_min =
-    tm->tm_sec = 0;
+    struct tm *time = GetTmNow();
+    time->tm_hour = 0;
+    time->tm_min = 0;
+    time->tm_sec = 0;
 
-    return wxDateTime(*tm);
+    return wxDateTime(*time);
 }
 
 #if (!(defined(__VISAGECPP__) && __IBMCPP__ >= 400))