]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/deprecated/prop.cpp
Typos fixed and further clarification of the Python situation on Panther
[wxWidgets.git] / contrib / src / deprecated / prop.cpp
index 75bfa145b2390c075bc6d51dbfb250b4f5b4de95..ae168ad1ae1dfa79e2421a05f430997a1a915d83 100644 (file)
 #include <math.h>
 #include <string.h>
 
+#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