X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1e6feb95a79834836e88143b15d9f424ebe79621..cd3c2375e6fddd3d478a6776900c21aaeb2d0f08:/src/generic/prop.cpp diff --git a/src/generic/prop.cpp b/src/generic/prop.cpp index 9b3792b717..ae8170a5ab 100644 --- a/src/generic/prop.cpp +++ b/src/generic/prop.cpp @@ -23,7 +23,6 @@ #if wxUSE_PROPSHEET #ifndef WX_PRECOMP -#include "wx/wx.h" #endif #include "wx/debug.h" @@ -48,6 +47,7 @@ wxPropertyValue::wxPropertyValue(void) } wxPropertyValue::wxPropertyValue(const wxPropertyValue& copyFrom) + : wxObject() { m_value.string = (wxChar*) NULL; m_modifiedFlag = FALSE; @@ -835,6 +835,7 @@ wxProperty::wxProperty(void) } wxProperty::wxProperty(wxProperty& copyFrom) + : wxObject() { m_value = copyFrom.GetValue(); m_name = copyFrom.GetName(); @@ -1140,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; }