Use wxString::empty() instead of comparison to wxEmptyString

This commit is contained in:
Paul Cornett
2017-05-29 00:05:52 -07:00
parent d16afbd3c1
commit c1f2bbce5d
10 changed files with 29 additions and 29 deletions

View File

@@ -700,7 +700,7 @@ bool wxHtmlHelpData::AddBook(const wxString& book)
wxFontEncoding enc = wxFONTENCODING_SYSTEM;
#if wxUSE_FONTMAP
if (charset != wxEmptyString)
if (!charset.empty())
enc = wxFontMapper::Get()->CharsetToEncoding(charset);
#endif
@@ -807,7 +807,7 @@ wxHtmlSearchStatus::wxHtmlSearchStatus(wxHtmlHelpData* data, const wxString& key
m_Data = data;
m_Keyword = keyword;
wxHtmlBookRecord* bookr = NULL;
if (book != wxEmptyString)
if (!book.empty())
{
// we have to search in a specific book. Find it first
int i, cnt = data->m_bookRecords.GetCount();