]> git.saurik.com Git - wxWidgets.git/commitdiff
compile fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Dec 1999 17:56:59 +0000 (17:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 6 Dec 1999 17:56:59 +0000 (17:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/mimetype.cpp

index 1b3962365cfe8c3a396c9b72fbc81ff4473167e3..6ffbf1c33a9615f8e591a09376580418915b2176 100644 (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;