From 85d11a7072d9ee43744f6f043d98901967dcdf8f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 6 Dec 1999 17:56:59 +0000 Subject: [PATCH] compile fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/mimetype.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/mimetype.cpp b/src/common/mimetype.cpp index 1b3962365c..6ffbf1c33a 100644 --- a/src/common/mimetype.cpp +++ b/src/common/mimetype.cpp @@ -1766,11 +1766,10 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxFileType **filetypes) { size_t count = m_aTypes.GetCount(); - *filetypes = new wxFileType *[count]; + *filetypes = new wxFileType[count]; 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;