- it = (wxHtmlContentsItem*) m_SearchList->GetClientData(0);
- }
- else if (mode == wxHELP_SEARCH_INDEX)
- {
- it = (wxHtmlContentsItem*) m_IndexList->GetClientData(0);
+ default:
+ wxFAIL_MSG( _T("unknown help search mode") );
+ // fall back
+
+ case wxHELP_SEARCH_ALL:
+ it = (wxHtmlContentsItem*) m_SearchList->GetClientData(0);
+ break;
+
+ case wxHELP_SEARCH_INDEX:
+ it = (wxHtmlContentsItem*) m_IndexList->GetClientData(0);
+ break;