]> git.saurik.com Git - wxWidgets.git/commitdiff
correct bug with using uninitialized end variable (unused variable warnings are not...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Jun 2009 12:19:59 +0000 (12:19 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 7 Jun 2009 12:19:59 +0000 (12:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdline.cpp

index c0a7e4131c1fe19717173c52fe38302eb878f167..dec8be85fc61bbc74841524aa6b4e1b633f6db9f 100644 (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())