correct bug with using uninitialized end variable (unused variable warnings are not always useless)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2009-06-07 12:19:59 +00:00
parent 8622887ce2
commit 0cb9ba2518

View File

@ -870,7 +870,7 @@ int wxCmdLineParser::Parse(bool showUsage)
{
wxDateTime dt;
wxString::const_iterator end;
if ( !dt.ParseDate(value) || end != value.end() )
if ( !dt.ParseDate(value, &end) || end != value.end() )
{
errorMsg << wxString::Format(_("Option '%s': '%s' cannot be converted to a date."),
name.c_str(), value.c_str())