Unicode fixes for OS/2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -32,7 +32,7 @@ IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase)
|
||||
|
||||
wxWinHelpController::wxWinHelpController()
|
||||
{
|
||||
m_helpFile = "";
|
||||
m_helpFile = wxEmptyString;
|
||||
}
|
||||
|
||||
wxWinHelpController::~wxWinHelpController()
|
||||
@@ -96,7 +96,7 @@ bool wxWinHelpController::DisplayBlock(long block)
|
||||
|
||||
wxString str = m_helpFile;
|
||||
size_t len = str.Length();
|
||||
if (!(str[(size_t)(len-1)] == 'p' && str[(size_t)(len-2)] == 'l' && str[(size_t)(len-3)] == 'h' && str[(size_t)(len-4)] == '.'))
|
||||
if (!(str[(size_t)(len-1)] == wxT('p') && str[(size_t)(len-2)] == wxT('l') && str[(size_t)(len-3)] == wxT('h') && str[(size_t)(len-4)] == wxT('.')))
|
||||
str += wxT(".hlp");
|
||||
|
||||
if (wxTheApp->GetTopWindow())
|
||||
@@ -111,7 +111,7 @@ bool wxWinHelpController::DisplayBlock(long block)
|
||||
bool wxWinHelpController::KeywordSearch(const wxString& k,
|
||||
wxHelpSearchMode WXUNUSED(mode))
|
||||
{
|
||||
if (m_helpFile == "") return FALSE;
|
||||
if (m_helpFile == wxEmptyString) return FALSE;
|
||||
|
||||
wxString str = m_helpFile;
|
||||
size_t len = str.Length();
|
||||
|
||||
Reference in New Issue
Block a user