]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/deprecated/prop.cpp
documented return value of Find[Absolute]ValidPath() correctly
[wxWidgets.git] / contrib / src / deprecated / prop.cpp
index 75bfa145b2390c075bc6d51dbfb250b4f5b4de95..1abb44d20d4d3951dadcdbc79f77e0e741e926f9 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)
 
@@ -1076,7 +1080,7 @@ wxPropertyValidator *wxPropertyValidatorRegistry::GetValidator(const wxString& t
 void wxPropertyValidatorRegistry::ClearRegistry(void)
 {
   BeginFind();
-  wxNode *node;
+  wxHashTable::Node *node;
   while ((node = Next()) != NULL)
   {
     delete (wxPropertyValidator *)node->GetData();
@@ -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