From: Vadim Zeitlin Date: Tue, 13 Sep 2005 15:58:50 +0000 (+0000) Subject: use WX_DEFINE_ARRAY_PTR for anarray of pointers (fixes Sun CC warning) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d2c74c6ef3d14e1fa4f22323353b83630acd7a9?hp=defbeca1b8bbe3853f11e7ee489e8c908629a228 use WX_DEFINE_ARRAY_PTR for anarray of pointers (fixes Sun CC warning) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/unix/mimetype.h b/include/wx/unix/mimetype.h index cc6f75f2d7..77d608587a 100644 --- a/include/wx/unix/mimetype.h +++ b/include/wx/unix/mimetype.h @@ -18,11 +18,11 @@ #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 @@ -215,9 +215,8 @@ private: wxArrayInt m_index; // in the wxMimeTypesManagerImpl arrays }; -#endif - // wxUSE_FILE +#endif // wxUSE_MIMETYPE + +#endif // _MIMETYPE_IMPL_H -#endif - //_MIMETYPE_IMPL_H diff --git a/src/unix/threadpsx.cpp b/src/unix/threadpsx.cpp index 69914f71b3..4ebe895d68 100644 --- a/src/unix/threadpsx.cpp +++ b/src/unix/threadpsx.cpp @@ -100,7 +100,7 @@ static void DeleteThread(wxThread *This); // ---------------------------------------------------------------------------- // an (non owning) array of pointers to threads -WX_DEFINE_ARRAY(wxThread *, wxArrayThread); +WX_DEFINE_ARRAY_PTR(wxThread *, wxArrayThread); // an entry for a thread we can wait for