X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f11bdd03b9623a61bfe3137beeefd7b1256bb9a1..b1b3ddd840a507f3ca85379bfa832f2b0c9105d6:/include/wx/mac/mimetype.h diff --git a/include/wx/mac/mimetype.h b/include/wx/mac/mimetype.h index b1af2186fc..35e1ba7b9b 100644 --- a/include/wx/mac/mimetype.h +++ b/include/wx/mac/mimetype.h @@ -6,13 +6,13 @@ // Created: 23.09.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> -// Licence: wxWindows license (part of wxExtra library) +// Licence: wxWindows licence (part of wxExtra library) ///////////////////////////////////////////////////////////////////////////// #ifndef _MIMETYPE_IMPL_H #define _MIMETYPE_IMPL_H -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(__APPLE__) #pragma interface "mimetype.h" #endif @@ -43,8 +43,8 @@ public : size_t EnumAllFileTypes(wxArrayString& mimetypes); // this are NOPs under MacOS - bool ReadMailcap(const wxString& filename, bool fallback = TRUE) { return TRUE; } - bool ReadMimeTypes(const wxString& filename) { return TRUE; } + bool ReadMailcap(const wxString& WXUNUSED(filename), bool WXUNUSED(fallback) = TRUE) { return TRUE; } + bool ReadMimeTypes(const wxString& WXUNUSED(filename)) { return TRUE; } void AddFallback(const wxFileTypeInfo& ft) { m_fallbacks.Add(ft); } @@ -71,7 +71,7 @@ public: // the first extension found, index 1 for the second and so on void Init(wxMimeTypesManagerImpl *manager, size_t index) - { m_manager = manager; m_index.Add(index); } + { m_manager = manager; m_index.Add(index); } // initialize us with our file type name void SetFileType(const wxString& strFileType) @@ -98,10 +98,10 @@ public: // remove the record for this file type // probably a mistake to come here, use wxMimeTypesManager.Unassociate (ft) instead bool Unassociate(wxFileType *ft) - { - return m_manager->Unassociate(ft); - } - + { + return m_manager->Unassociate(ft); + } + // set an arbitrary command, ask confirmation if it already exists and // overwriteprompt is TRUE bool SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt = TRUE);