X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/48df9992adcf813a5b065778fbd089d9f157eddc..6dc34ebbd8f787eb42018df5b5fb938c1c7390aa:/utils/wxprop/src/prop.cpp diff --git a/utils/wxprop/src/prop.cpp b/utils/wxprop/src/prop.cpp index 0746f05a7b..59802962de 100644 --- a/utils/wxprop/src/prop.cpp +++ b/utils/wxprop/src/prop.cpp @@ -208,7 +208,7 @@ wxPropertyValue::~wxPropertyValue(void) } case wxPropertyValueString: { - delete m_value.string; + delete[] m_value.string; break; } case wxPropertyValueList: @@ -382,7 +382,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom) case wxPropertyValueStringPtr: { char** s = copyFrom.StringValuePtr(); - (*this) = s; + (*this) = s != 0; return ; } @@ -963,13 +963,13 @@ void wxPropertySheet::UpdateAllViews( wxPropertyView *WXUNUSED(thisView) ) // Add a property void wxPropertySheet::AddProperty(wxProperty *property) { - m_properties.Append(property->GetName().GetData(), property); + m_properties.Append((const char*) property->GetName(), property); } // Get property by name wxProperty *wxPropertySheet::GetProperty(wxString name) { - wxNode *node = m_properties.Find(name.GetData()); + wxNode *node = m_properties.Find((const char*) name); if (!node) return NULL; else @@ -1018,14 +1018,14 @@ wxPropertyValidatorRegistry::~wxPropertyValidatorRegistry(void) ClearRegistry(); } -void wxPropertyValidatorRegistry::RegisterValidator(wxString& typeName, wxPropertyValidator *validator) +void wxPropertyValidatorRegistry::RegisterValidator(const wxString& typeName, wxPropertyValidator *validator) { - Put(typeName.GetData(), validator); + Put((const char*) typeName, validator); } -wxPropertyValidator *wxPropertyValidatorRegistry::GetValidator(wxString& typeName) +wxPropertyValidator *wxPropertyValidatorRegistry::GetValidator(const wxString& typeName) { - return (wxPropertyValidator *)Get(typeName.GetData()); + return (wxPropertyValidator *)Get((const char*) typeName); } void wxPropertyValidatorRegistry::ClearRegistry(void)