X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d9ab621ea2513f623f3f7c1699648f189e37be3f..9ad7392b6a1bcd63cce8ad7899348f49d3e82a88:/utils/configtool/src/propeditor.cpp diff --git a/utils/configtool/src/propeditor.cpp b/utils/configtool/src/propeditor.cpp index 27e3e34600..762df55dfb 100644 --- a/utils/configtool/src/propeditor.cpp +++ b/utils/configtool/src/propeditor.cpp @@ -65,10 +65,6 @@ ctPropertyEditor::ctPropertyEditor(wxWindow *parent, wxWindowID id, const wxPoin CreateControls(this); } -ctPropertyEditor::~ctPropertyEditor() -{ -} - void ctPropertyEditor::CreateControls(wxWindow* parent) { m_elementTitleTextCtrl = new wxTextCtrl(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY); @@ -191,7 +187,7 @@ bool ctPropertyEditor::CanEditDetails() int row; ctProperty* prop = FindSelectedProperty(row); - if (!prop || prop->GetEditorType().IsEmpty()) + if (!prop || prop->GetEditorType().empty()) return false; return true; } @@ -387,7 +383,7 @@ bool ctPropertyEditor::DisplayDefaultProperty() bool ctPropertyEditor::EditDefaultProperty(ctConfigItem* item) { wxString defaultPropertyName = item->GetDefaultProperty(); - if (!defaultPropertyName.IsEmpty()) + if (!defaultPropertyName.empty()) { ctProperty* prop = item->GetProperties().FindProperty(defaultPropertyName); if (prop) @@ -813,10 +809,10 @@ bool ctMultiLineTextEditor::AddControls(wxWindow* parent, const wxString& msg) item4->Add( 5, 5, 1, wxALIGN_CENTRE|wxALL, 5 ); - wxButton *item5 = new wxButton( parent, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 ); + wxButton *item5 = new wxButton( parent, wxID_OK); item4->Add( item5, 0, wxALIGN_CENTRE|wxALL, 5 ); - wxButton *item6 = new wxButton( parent, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 ); + wxButton *item6 = new wxButton( parent, wxID_CANCEL); item4->Add( item6, 0, wxALIGN_CENTRE|wxALL, 5 ); item1->Add( item4, 0, wxGROW|wxALIGN_CENTER_VERTICAL, 5 );