X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/29d0a26e659591844117a3387f300648ee265bf5..e0c5c96f67eaf13ccbd378616bdf98c8dba01e78:/src/generic/helpext.cpp diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index f3cbfe6687..40e3f5b171 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) # pragma implementation "wxexthlp.h" #endif @@ -19,7 +19,7 @@ #pragma hdrstop #endif -#if wxUSE_HELP +#if wxUSE_HELP && !defined(__WXWINCE__) #ifndef WX_PRECOMP #include "wx/setup.h" @@ -29,6 +29,7 @@ #include "wx/intl.h" #include "wx/msgdlg.h" #include "wx/choicdlg.h" + #include "wx/log.h" #endif #include "wx/helpbase.h" @@ -121,9 +122,8 @@ wxExtHelpController::DisplayHelp(const wxString &relativeURL) wxLogSysError(_("Cannot open URL '%s'"), relativeURL.c_str()); return false; } - else - return true; + return true; #elif defined(__WXPM__) wxString url; @@ -198,11 +198,11 @@ void wxExtHelpController::DeleteList() { if(m_MapList) { - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); while (node) { delete (wxExtHelpMapEntry *)node->GetData(); - delete node; + m_MapList->Erase(node); node = m_MapList->GetFirst(); } delete m_MapList; @@ -328,7 +328,7 @@ wxExtHelpController::DisplayContents() return FALSE; wxString contents; - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); wxExtHelpMapEntry *entry; while(node) { @@ -360,7 +360,7 @@ wxExtHelpController::DisplaySection(int sectionNo) return FALSE; wxBusyCursor b; // display a busy cursor - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); wxExtHelpMapEntry *entry; while(node) { @@ -389,7 +389,8 @@ wxExtHelpController::DisplayBlock(long blockNo) } bool -wxExtHelpController::KeywordSearch(const wxString& k) +wxExtHelpController::KeywordSearch(const wxString& k, + wxHelpSearchMode WXUNUSED(mode)) { if(! m_NumOfEntries) return FALSE; @@ -401,7 +402,7 @@ wxExtHelpController::KeywordSearch(const wxString& k) int idx = 0, j; bool rc; bool showAll = k.IsEmpty(); - wxNode *node = m_MapList->GetFirst(); + wxList::compatibility_iterator node = m_MapList->GetFirst(); wxExtHelpMapEntry *entry; {