determine wxFSFile's MIME type when wxFSFile::GetMimeType() is called instead of creating it; this dramatically improves startup times of XRC applications on Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -122,7 +122,7 @@ wxFSFile* wxMemoryFSHandlerBase::OpenFile(wxFileSystem& WXUNUSED(fs), const wxSt
|
||||
if (obj == NULL) return NULL;
|
||||
else return new wxFSFile(new wxMemoryInputStream(obj -> m_Data, obj -> m_Len),
|
||||
location,
|
||||
GetMimeTypeFromExt(location),
|
||||
wxEmptyString,
|
||||
GetAnchor(location)
|
||||
#if wxUSE_DATETIME
|
||||
, obj -> m_Time
|
||||
|
||||
Reference in New Issue
Block a user