Remove an extra block needed after the previous commit
Also add a comment for clarity. No real changes.
This commit is contained in:
@@ -130,20 +130,21 @@ wxString wxFileSystemHandler::GetMimeTypeFromExt(const wxString& location)
|
|||||||
|
|
||||||
return mime;
|
return mime;
|
||||||
}
|
}
|
||||||
#endif
|
#endif // wxUSE_MIMETYPE
|
||||||
{
|
|
||||||
if ( ext.IsSameAs(wxT("htm"), false) || ext.IsSameAs(wxT("html"), false) )
|
// Without wxUSE_MIMETYPE, recognize just a few hardcoded special cases.
|
||||||
return wxT("text/html");
|
if ( ext.IsSameAs(wxT("htm"), false) || ext.IsSameAs(wxT("html"), false) )
|
||||||
if ( ext.IsSameAs(wxT("jpg"), false) || ext.IsSameAs(wxT("jpeg"), false) )
|
return wxT("text/html");
|
||||||
return wxT("image/jpeg");
|
if ( ext.IsSameAs(wxT("jpg"), false) || ext.IsSameAs(wxT("jpeg"), false) )
|
||||||
if ( ext.IsSameAs(wxT("gif"), false) )
|
return wxT("image/jpeg");
|
||||||
return wxT("image/gif");
|
if ( ext.IsSameAs(wxT("gif"), false) )
|
||||||
if ( ext.IsSameAs(wxT("png"), false) )
|
return wxT("image/gif");
|
||||||
return wxT("image/png");
|
if ( ext.IsSameAs(wxT("png"), false) )
|
||||||
if ( ext.IsSameAs(wxT("bmp"), false) )
|
return wxT("image/png");
|
||||||
return wxT("image/bmp");
|
if ( ext.IsSameAs(wxT("bmp"), false) )
|
||||||
return wxEmptyString;
|
return wxT("image/bmp");
|
||||||
}
|
|
||||||
|
return wxString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user