X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04dbb6467be8f564f380bd9a1106fbdecbd26a98..cd3c2375e6fddd3d478a6776900c21aaeb2d0f08:/src/generic/prop.cpp diff --git a/src/generic/prop.cpp b/src/generic/prop.cpp index 028427d935..ae8170a5ab 100644 --- a/src/generic/prop.cpp +++ b/src/generic/prop.cpp @@ -47,6 +47,7 @@ wxPropertyValue::wxPropertyValue(void) } wxPropertyValue::wxPropertyValue(const wxPropertyValue& copyFrom) + : wxObject() { m_value.string = (wxChar*) NULL; m_modifiedFlag = FALSE; @@ -834,6 +835,7 @@ wxProperty::wxProperty(void) } wxProperty::wxProperty(wxProperty& copyFrom) + : wxObject() { m_value = copyFrom.GetValue(); m_name = copyFrom.GetName(); @@ -1139,13 +1141,13 @@ bool wxPropertyValidator::StringToLong (wxChar *s, long *number) { 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; }