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:
parent
8622887ce2
commit
0cb9ba2518
@ -870,7 +870,7 @@ int wxCmdLineParser::Parse(bool showUsage)
|
|||||||
{
|
{
|
||||||
wxDateTime dt;
|
wxDateTime dt;
|
||||||
wxString::const_iterator end;
|
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."),
|
errorMsg << wxString::Format(_("Option '%s': '%s' cannot be converted to a date."),
|
||||||
name.c_str(), value.c_str())
|
name.c_str(), value.c_str())
|
||||||
|
Loading…
Reference in New Issue
Block a user