From: Vadim Zeitlin Date: Mon, 28 May 2001 15:05:05 +0000 (+0000) Subject: compilation fixes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7ac05a91abea459438b8ea62074108d3daf39568 compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/config.cpp b/src/common/config.cpp index d2015ed568..1b614016b2 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -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; diff --git a/src/generic/gridctrl.cpp b/src/generic/gridctrl.cpp index 23fa38899a..f16184ecf7 100644 --- a/src/generic/gridctrl.cpp +++ b/src/generic/gridctrl.cpp @@ -19,6 +19,11 @@ #pragma hdrstop #endif +#ifndef WX_PRECOMP + #include "wx/textctrl.h" + #include "wx/dc.h" +#endif // WX_PRECOMP + #include "wx/generic/gridctrl.h" #include "wx/tokenzr.h"