also reset errno iin ToDouble()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-28 15:42:28 +00:00
parent 4ea4767ef9
commit e71e5b3726

View File

@ -1710,6 +1710,8 @@ bool wxString::ToDouble(double *val) const
{ {
wxCHECK_MSG( val, false, _T("NULL pointer in wxString::ToDouble") ); wxCHECK_MSG( val, false, _T("NULL pointer in wxString::ToDouble") );
errno = 0;
const wxChar *start = c_str(); const wxChar *start = c_str();
wxChar *end; wxChar *end;
*val = wxStrtod(start, &end); *val = wxStrtod(start, &end);