added another ParseFormat() overload for better backwards compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-01-07 01:35:28 +00:00
parent ac2b78257b
commit 3371873669
2 changed files with 11 additions and 4 deletions

View File

@@ -3395,7 +3395,7 @@ wxDateTime::ParseFormat(const wxString& date,
case _T('r'): // time as %I:%M:%S %p
{
wxDateTime dt;
input = dt.ParseFormat(input, _T("%I:%M:%S %p"));
input = dt.ParseFormat(input, wxS("%I:%M:%S %p"));
if ( !input )
{
// no match
@@ -3414,7 +3414,7 @@ wxDateTime::ParseFormat(const wxString& date,
case _T('R'): // time as %H:%M
{
wxDateTime dt;
input = dt.ParseFormat(input, _T("%H:%M"));
input = dt.ParseFormat(input, wxS("%H:%M"));
if ( !input )
{
// no match