X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8650108199bf799f21e29811cddaefd579c98c88..9d5507f7a2701395e1d5c121bd877bb9066ee6ea:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 4a39baa089..e85d76f28e 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -141,24 +141,8 @@ public: wxString sTmp = GetLine(i).AfterFirst(wxT('=')); return sTmp; } - -protected: - // we override this virtual method because we want to always use UTF-8 - // conversion allowing for invalid characters as MIME information files - // often contain lines in different encodings and can't be read using any - // single conversion in Unicode build, so we just try to read what we can - // suing the most common encoding (UTF-8 is almost ubiquitous nowadays) and - // ignore the rest - virtual bool OnRead(const wxMBConv& WXUNUSED(conv)) - { - return wxTextFile::OnRead( - wxMBConvUTF8(wxMBConvUTF8::MAP_INVALID_UTF8_TO_PUA)); - } }; -// in case we're compiling in non-GUI mode -class WXDLLEXPORT wxIcon; - // ---------------------------------------------------------------------------- // constants // ---------------------------------------------------------------------------- @@ -1019,7 +1003,7 @@ void wxMimeTypesManagerImpl::LoadKDEApp(const wxString& filename) wxStringTokenizer tokenizer(mimetypes, _T(";")); while(tokenizer.HasMoreTokens()) { wxString mimetype = tokenizer.GetNextToken().Lower(); - int nIndex = m_aTypes.Index(mimetype); + nIndex = m_aTypes.Index(mimetype); if(nIndex != wxNOT_FOUND) { // is this a known MIME type? wxMimeTypeCommands* entry = m_aEntries[nIndex]; entry->AddOrReplaceVerb(wxT("open"), sCmd); @@ -2613,8 +2597,7 @@ bool wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName, Field_Type, Field_OpenCmd, Field_Other - } - currentToken = Field_Type; + } currentToken = Field_Type; // the flags and field values on the current line MailcapLineData data;