X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a63798c5a3c763a431f1fd3705e89249d28eb53..d485bda109d5ef0fef36a3f737549e9b9f54baab:/src/common/cmdline.cpp?ds=sidebyside diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 2952c2d6ae..bb5bd83b93 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -969,8 +969,8 @@ int wxCmdLineParser::Parse(bool showUsage) 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())