X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a3bdee6a979146c426cd058e9bfe6b58135b124..d1a6e2b7a103d761fbc15e0e9c1c20ab53a849d9:/contrib/src/deprecated/prop.cpp?ds=inline diff --git a/contrib/src/deprecated/prop.cpp b/contrib/src/deprecated/prop.cpp index 75bfa145b2..ae168ad1ae 100644 --- a/contrib/src/deprecated/prop.cpp +++ b/contrib/src/deprecated/prop.cpp @@ -35,6 +35,10 @@ #include #include +#if !WXWIN_COMPATIBILITY_2_4 +static inline wxChar* copystring(const wxChar* s) + { return wxStrcpy(new wxChar[wxStrlen(s) + 1], s); } +#endif IMPLEMENT_DYNAMIC_CLASS(wxPropertyValue, wxObject) @@ -1154,11 +1158,17 @@ wxChar *wxPropertyValidator::DoubleToString (double number) { } wxChar *wxPropertyValidator::IntToString (int number) { - return ::IntToString (number); + static wxChar buf[20]; + + wxSprintf (buf, wxT("%d"), number); + return buf; } wxChar *wxPropertyValidator::LongToString (long number) { - return ::LongToString (number); - } + static wxChar buf[20]; + + wxSprintf (buf, wxT("%ld"), number); + return buf; +} #endif // wxUSE_PROPSHEET