From 070895565ea20aab321e10d96ea92fac2e6ccd17 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 8 Jan 2008 13:57:27 +0000 Subject: [PATCH] compilation fix for !HAVE_STRPTIME case after ParseXXX() changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/datetime.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/common/datetime.cpp b/src/common/datetime.cpp index 948b3e6f26..98e755a601 100644 --- a/src/common/datetime.cpp +++ b/src/common/datetime.cpp @@ -3574,10 +3574,11 @@ wxDateTime::ParseFormat(const wxString& date, // common cases wxDateTime dt; - const wxChar *result = dt.ParseFormat(input, _T("%T")); + const wxStringCharType * + result = dt.ParseFormat(input, wxS("%T")); if ( !result ) { - result = dt.ParseFormat(input, _T("%r")); + result = dt.ParseFormat(input, wxS("%r")); } if ( !result ) @@ -3586,7 +3587,9 @@ wxDateTime::ParseFormat(const wxString& date, return NULL; } - haveHour = haveMin = haveSec = true; + haveHour = + haveMin = + haveSec = true; Tm tm = dt.GetTm(); hour = tm.hour;