compile fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 1999-12-06 17:56:59 +00:00
parent 1b986aef6e
commit 85d11a7072

View File

@ -1766,11 +1766,10 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxFileType **filetypes)
{ {
size_t count = m_aTypes.GetCount(); size_t count = m_aTypes.GetCount();
*filetypes = new wxFileType *[count]; *filetypes = new wxFileType[count];
for ( size_t n = 0; n < count; n++ ) for ( size_t n = 0; n < count; n++ )
{ {
(*filetypes)[n] = new wxFileType; (*filetypes)[n].m_impl->Init(this, n);
(*filetypes)[n]->m_impl->Init(this, n);
} }
return count; return count;