]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdline.cpp
Add missing WXK constants for the control keys
[wxWidgets.git] / src / common / cmdline.cpp
index 2952c2d6aea3c037908d60cb367600bf3a952d22..bb5bd83b93010f335b97cb3417e78e84c8953865 100644 (file)
@@ -969,8 +969,8 @@ int wxCmdLineParser::Parse(bool showUsage)
                         case wxCMD_LINE_VAL_DATE:
                             {
                                 wxDateTime dt;
                         case wxCMD_LINE_VAL_DATE:
                             {
                                 wxDateTime dt;
-                                wxString::const_iterator end;
-                                if ( !dt.ParseDate(value, &end) || end != value.end() )
+                                wxString::const_iterator endDate;
+                                if ( !dt.ParseDate(value, &endDate) || endDate != value.end() )
                                 {
                                     errorMsg << wxString::Format(_("Option '%s': '%s' cannot be converted to a date."),
                                                                  name.c_str(), value.c_str())
                                 {
                                     errorMsg << wxString::Format(_("Option '%s': '%s' cannot be converted to a date."),
                                                                  name.c_str(), value.c_str())