X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f7ad3cd30b06dc80786a656ca05bd9c98dacc7c9..2a1f999fafa4312ccd47b7be65c672c2220fea36:/contrib/src/gizmos/editlbox.cpp diff --git a/contrib/src/gizmos/editlbox.cpp b/contrib/src/gizmos/editlbox.cpp index 4f489d5746..1e0271a58c 100644 --- a/contrib/src/gizmos/editlbox.cpp +++ b/contrib/src/gizmos/editlbox.cpp @@ -41,7 +41,7 @@ public: const wxSize &size = wxDefaultSize, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, - const wxString &name = _T("listctrl")) + const wxString &name = wxListCtrlNameStr) : wxListCtrl(parent, id, pos, size, style, validator, name) { CreateColumns(); @@ -222,7 +222,7 @@ void wxEditableListBox::OnNewItem(wxCommandEvent& WXUNUSED(event)) void wxEditableListBox::OnEndLabelEdit(wxListEvent& event) { if ( event.GetIndex() == m_listCtrl->GetItemCount()-1 && - !event.GetText().IsEmpty() ) + !event.GetText().empty() ) { // The user edited last (empty) line, i.e. added new entry. We have to // add new empty line here so that adding one more line is still