X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5276b0a53cef4815230e39b54d2ecda14f72cbd1..07aaf32633ecf18ec3edfbb41793a112914792d0:/src/generic/helpext.cpp?ds=sidebyside diff --git a/src/generic/helpext.cpp b/src/generic/helpext.cpp index efd0df5116..d43331fbc6 100644 --- a/src/generic/helpext.cpp +++ b/src/generic/helpext.cpp @@ -134,12 +134,12 @@ bool wxExtHelpController::DisplayHelp(const wxString &relativeURL) class wxExtHelpMapEntry : public wxObject { public: - int id; + int entryid; wxString url; wxString doc; wxExtHelpMapEntry(int iid, wxString const &iurl, wxString const &idoc) - { id = iid; url = iurl; doc = idoc; } + { entryid = iid; url = iurl; doc = idoc; } }; void wxExtHelpController::DeleteList() @@ -325,7 +325,7 @@ bool wxExtHelpController::DisplayContents() while (node) { entry = (wxExtHelpMapEntry *)node->GetData(); - if (entry->id == WXEXTHELP_CONTENTS_ID) + if (entry->entryid == WXEXTHELP_CONTENTS_ID) { contents = entry->url; break; @@ -339,7 +339,7 @@ bool wxExtHelpController::DisplayContents() file << m_helpDir << wxFILE_SEP_PATH << contents; if (file.Contains(wxT('#'))) file = file.BeforeLast(wxT('#')); - if (contents.length() && wxFileExists(file)) + if ( wxFileExists(file) ) rc = DisplaySection(WXEXTHELP_CONTENTS_ID); // if not found, open homemade toc: @@ -357,7 +357,7 @@ bool wxExtHelpController::DisplaySection(int sectionNo) while (node) { entry = (wxExtHelpMapEntry *)node->GetData(); - if (entry->id == sectionNo) + if (entry->entryid == sectionNo) return DisplayHelp(entry->url); node = node->GetNext(); }