}
wxPropertyValue::wxPropertyValue(const wxPropertyValue& copyFrom)
+ : wxObject()
{
m_value.string = (wxChar*) NULL;
m_modifiedFlag = FALSE;
}
wxProperty::wxProperty(wxProperty& copyFrom)
+ : wxObject()
{
m_value = copyFrom.GetValue();
m_name = copyFrom.GetName();
wxChar *wxPropertyValidator::FloatToString (float number) {
static wxChar buf[20];
- wxSprintf (buf, wxT("%.6g"), number);
+ wxSnprintf (buf, 20, wxT("%.6g"), number);
return buf;
}
wxChar *wxPropertyValidator::DoubleToString (double number) {
static wxChar buf[20];
- wxSprintf (buf, wxT("%.6g"), number);
+ wxSnprintf (buf, 20, wxT("%.6g"), number);
return buf;
}