Clarify wxDateTime::ParseDateTime() semantics: it needs both date and time.
Correct documentation and also remove unnecessary initialization of variables and comments in the function itself. See #11846. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1497,10 +1497,9 @@ wxDateTime::ParseDateTime(const wxString& date, wxString::const_iterator *end)
|
||||
{
|
||||
wxCHECK_MSG( end, false, "end iterator pointer must be specified" );
|
||||
|
||||
// Set to current day and hour, so strings like '14:00' becomes today at
|
||||
// 14, not some other random date
|
||||
wxDateTime dtDate = wxDateTime::Today();
|
||||
wxDateTime dtTime = wxDateTime::Today();
|
||||
wxDateTime
|
||||
dtDate,
|
||||
dtTime;
|
||||
|
||||
wxString::const_iterator
|
||||
endTime,
|
||||
|
||||
Reference in New Issue
Block a user