X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0222a60b3491fa0835b4b0d41430c745e9b90615..0bff3f690535ad1a5815326bf7a96108c146acab:/src/html/helpctrl.cpp?ds=sidebyside diff --git a/src/html/helpctrl.cpp b/src/html/helpctrl.cpp index 1748fef73d..9f1de8e409 100644 --- a/src/html/helpctrl.cpp +++ b/src/html/helpctrl.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "helpctrl.h" #endif @@ -271,7 +271,7 @@ void wxHtmlHelpController::AddGrabIfNeeded() // Check if there are any modal windows present, // in which case we need to add a grab. - for ( wxWindowList::Node * node = wxTopLevelWindows.GetFirst(); + for ( wxWindowList::compatibility_iterator node = wxTopLevelWindows.GetFirst(); node; node = node->GetNext() ) { @@ -319,10 +319,11 @@ bool wxHtmlHelpController::DisplayIndex() return success; } -bool wxHtmlHelpController::KeywordSearch(const wxString& keyword) +bool wxHtmlHelpController::KeywordSearch(const wxString& keyword, + wxHelpSearchMode mode) { CreateHelpWindow(); - bool success = m_helpFrame->KeywordSearch(keyword); + bool success = m_helpFrame->KeywordSearch(keyword, mode); AddGrabIfNeeded(); return success; }