X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3baa26624a526e2919699e5061a020ee0a0a5411..f3cb0d85b4e032cacaca960fc5cf3573ac75bbfc:/demos/poem/wxpoem.cpp diff --git a/demos/poem/wxpoem.cpp b/demos/poem/wxpoem.cpp index 0b05f793cc..f4a749d17c 100644 --- a/demos/poem/wxpoem.cpp +++ b/demos/poem/wxpoem.cpp @@ -486,7 +486,7 @@ void MainWindow::Search(bool ask) if (ask || m_searchString.empty()) { wxString s = wxGetTextFromUser( _T("Enter search string"), _T("Search"), m_searchString); - if (s != wxEmptyString) + if (!s.empty()) { s.MakeLower(); m_searchString = s;