X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..f321d0bc0caf4d78ccc5426e926fc25c46297439:/demos/forty/playerdg.cpp?ds=sidebyside diff --git a/demos/forty/playerdg.cpp b/demos/forty/playerdg.cpp index 7f5effaa32..b1b1f71e07 100644 --- a/demos/forty/playerdg.cpp +++ b/demos/forty/playerdg.cpp @@ -114,7 +114,7 @@ void PlayerSelectionDialog::ButtonCallback(wxCommandEvent& event) if (event.GetId() == wxID_OK) { wxString name = m_textField->GetValue(); - if (!name.IsNull() && name.Length() > 0) + if ( !name.empty() ) { if (name.Contains(wxT('@'))) {