X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da0766ab2ae2357cd4dc111415731ee85aa45984..f499ca450c3863cea52f7b7f77aa7eecc942b552:/include/wx/unix/mimetype.h diff --git a/include/wx/unix/mimetype.h b/include/wx/unix/mimetype.h index 3f03cf0483..e8ee5ae9fa 100644 --- a/include/wx/unix/mimetype.h +++ b/include/wx/unix/mimetype.h @@ -12,17 +12,13 @@ #ifndef _MIMETYPE_IMPL_H #define _MIMETYPE_IMPL_H -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "mimetype.h" -#endif - #include "wx/mimetype.h" -#if (wxUSE_FILE && wxUSE_TEXTFILE) +#if wxUSE_MIMETYPE class wxMimeTypeCommands; -WX_DEFINE_ARRAY(wxMimeTypeCommands *, wxMimeCommandsArray); +WX_DEFINE_ARRAY_PTR(wxMimeTypeCommands *, wxMimeCommandsArray); // this is the real wxMimeTypesManager for Unix class WXDLLEXPORT wxMimeTypesManagerImpl @@ -71,14 +67,7 @@ public: wxString GetExtension(size_t index) { return m_aExtensions[index]; } private: - void InitIfNeeded() - { - if ( !m_initialized ) { - // set the flag first to prevent recursion - m_initialized = TRUE; - Initialize(); - } - } + void InitIfNeeded(); wxArrayString m_aTypes, // MIME types m_aDescriptions, // descriptions (just some text) @@ -222,9 +211,8 @@ private: wxArrayInt m_index; // in the wxMimeTypesManagerImpl arrays }; -#endif - // wxUSE_FILE +#endif // wxUSE_MIMETYPE + +#endif // _MIMETYPE_IMPL_H -#endif - //_MIMETYPE_IMPL_H