]> git.saurik.com Git - wxWidgets.git/commit
Return valid pointers from wxDateTime::ParseXXX() with non-wxString strings.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2012 16:45:53 +0000 (16:45 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 25 Mar 2012 16:45:53 +0000 (16:45 +0000)
commitf17ac57417530febd2c48bbb6c82004cb23d108c
treec278775b29fae3d808bdc00f3317b2ace9929de7
parent52dc2108ae52f9cc997fc80e2b2b0b399b9581ef
Return valid pointers from wxDateTime::ParseXXX() with non-wxString strings.

The pointer returned by wxDateTime::ParseXXX() methods could point into a
buffer of a temporary wxString created to wrap a char* or wchar_t* argument so
dereferencing it was illegal.

Fix this by defining separate overloads for char*/wchar_t* arguments returning
pointers into the original string.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/datetime.h
src/common/datetimefmt.cpp
tests/datetime/datetimetest.cpp