]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
make wxDateTime::ParseXXX() functions char*-friendly
[wxWidgets.git] / src / common / cmdline.cpp
index c5956e23104e62ec0042dc175f220402472bffc7..1b62b060a3a69b88ece9ca73c4bab95c884a4f93 100644 (file)
@@ -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."),