X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4fe30bceff0445f540e639d2b6d3977d56b34020..08b97268061292f7c3794dae243a6490b23a42f1:/utils/configtool/src/property.h diff --git a/utils/configtool/src/property.h b/utils/configtool/src/property.h index 06fbf4d8f6..fd980f0f28 100644 --- a/utils/configtool/src/property.h +++ b/utils/configtool/src/property.h @@ -13,10 +13,6 @@ #ifndef _CT_PROPERTY_H_ #define _CT_PROPERTY_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "property.cpp" -#endif - #include "wx/variant.h" /*! @@ -34,7 +30,7 @@ public: m_custom = false; m_show = true; } - ctProperty(const ctProperty& property) { Copy(property); } + ctProperty(const ctProperty& property) : wxObject() { Copy(property); } ctProperty(const wxString& descr, const wxVariant& variant, const wxString& editorType = wxEmptyString, bool readOnly = false) @@ -91,7 +87,7 @@ public: inline const wxArrayString& GetChoices() const { return m_choices; } inline const wxString& GetDescription() const { return m_description; } inline bool IsCustom() const { return m_custom; } - + inline void SetName(const wxString& name) { m_variant.SetName(name); } inline void SetValue(const wxString& value) { m_variant = value; } inline void SetValue(const wxVariant& value) { m_variant = value; } @@ -134,7 +130,7 @@ class ctProperties: public wxObject DECLARE_CLASS(ctProperties) public: ctProperties() {} - ctProperties(const ctProperties& properties) { Copy(properties); } + ctProperties(const ctProperties& properties) : wxObject() { Copy(properties); } ~ctProperties() { Clear(); } void operator = (const ctProperties& properties) { Clear(); Copy(properties); }