#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
+
// ----------------------------------------------------------------------------
// Property text edit control
// ----------------------------------------------------------------------------
return FALSE;
wxString value(view->GetValueText()->GetValue());
- bool boolValue = FALSE;
- if (value == wxT("True"))
- boolValue = TRUE;
- else
- boolValue = FALSE;
+ bool boolValue = (value == wxT("True"));
property->GetValue() = (bool)boolValue;
return TRUE;
}
wxChar *s = node->GetData();
if (wxStrcmp(s, currentString) == 0)
{
- wxChar *nextString = NULL;
+ wxChar *nextString;
if (node->GetNext())
nextString = node->GetNext()->GetData();
else