make wxDateTime::ParseXXX() functions char*-friendly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -806,8 +806,7 @@ int wxCmdLineParser::Parse(bool showUsage)
|
||||
case wxCMD_LINE_VAL_DATE:
|
||||
{
|
||||
wxDateTime dt;
|
||||
// FIXME-UTF8: ParseDate API will need changes
|
||||
const wxChar *res = dt.ParseDate(value.c_str());
|
||||
const char *res = dt.ParseDate(value);
|
||||
if ( !res || *res )
|
||||
{
|
||||
errorMsg << wxString::Format(_("Option '%s': '%s' cannot be converted to a date."),
|
||||
|
Reference in New Issue
Block a user