compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -132,9 +132,9 @@ bool wxConfigBase::Read(const wxString& key, long *pl, long defVal) const
|
||||
bool wxConfigBase::Read(const wxString& key, double* val) const
|
||||
{
|
||||
wxString str;
|
||||
if (Read(key, & str))
|
||||
if ( Read(key, &str) )
|
||||
{
|
||||
return wxSscanf(str, _T("%g"), val) == 1;
|
||||
return str.ToDouble(val);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user