X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53e3052c3c558081f5403adf3726ddbc16abc0d6..057b55b016d9e2076fde422f29948dc55e97f0d7:/src/unix/mimetype.cpp diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index eda69158e7..6693d5bd88 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -299,10 +299,13 @@ static bool IsKnownUnimportantField(const wxString& field); // a) for "brief" format: // // b) for "expanded" format: -// type= \ -// desc="" \ +// type= BACKSLASH +// desc="" BACKSLASH // exts="" // +// (where BACKSLASH is a literal '\\' which we can't put here because cpp +// misinterprets it) +// // We try to autodetect the format of mime.types: if a non-comment line starts // with "type=" we assume the second format, otherwise the first one. @@ -2528,11 +2531,11 @@ bool wxMimeTypesManagerImpl::Unassociate(wxFileType *ft) else { WriteMimeInfo(nIndex, TRUE ); - m_aTypes.Remove (nIndex); - m_aEntries.Remove (nIndex); - m_aExtensions.Remove (nIndex); - m_aDescriptions.Remove (nIndex); - m_aIcons.Remove (nIndex); + m_aTypes.RemoveAt(nIndex); + m_aEntries.RemoveAt(nIndex); + m_aExtensions.RemoveAt(nIndex); + m_aDescriptions.RemoveAt(nIndex); + m_aIcons.RemoveAt(nIndex); } } // check data integrity