// MAX length of Help descriptor
#define _MAX_HELP_LEN 500
-#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxWinHelpController, wxHelpControllerBase)
-#endif
wxWinHelpController::wxWinHelpController()
{
- m_helpFile = "";
+ m_helpFile = wxEmptyString;
}
wxWinHelpController::~wxWinHelpController()
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())
return FALSE;
}
-bool wxWinHelpController::KeywordSearch(const wxString& k)
+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();