X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e5aea7214deb0443b068b1deb4a81772572d849e..bc55104d9ab0b0b835644f17a152b4fbbfa8c7b9:/include/wx/datetime.inl?ds=sidebyside diff --git a/include/wx/datetime.inl b/include/wx/datetime.inl index 10e929a22a..8ec379dd9d 100644 --- a/include/wx/datetime.inl +++ b/include/wx/datetime.inl @@ -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))