X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..233387bdcbb1c4f31c54b0fe6b3f03e8d261cab1:/src/mac/classic/mimetmac.cpp diff --git a/src/mac/classic/mimetmac.cpp b/src/mac/classic/mimetmac.cpp index ff6ef1d39f..c1dd028eb7 100644 --- a/src/mac/classic/mimetmac.cpp +++ b/src/mac/classic/mimetmac.cpp @@ -6,13 +6,9 @@ // Created: 23.09.98 // RCS-ID: $Id$ // Copyright: (c) 1998 Vadim Zeitlin -// Licence: wxWidgets licence (part of wxExtra library) +// Licence: wxWindows licence (part of wxExtra library) ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "mimetype.h" -#endif - // for compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -48,23 +44,23 @@ class WXDLLEXPORT wxIcon; bool wxFileTypeImpl::SetCommand(const wxString& cmd, const wxString& verb, bool overwriteprompt) { - return FALSE; + return false; } bool wxFileTypeImpl::SetDefaultIcon(const wxString& strIcon, int index) { - return FALSE; + return false; } bool wxFileTypeImpl::GetCommand(wxString *command, const char *verb) const { - return FALSE; + return false; } // @@ this function is half implemented bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions) { - return FALSE; + return false; } bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const @@ -72,35 +68,35 @@ bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const if ( m_strFileType.Length() > 0 ) { *mimeType = m_strFileType ; - return TRUE ; + return true ; } else - return FALSE; + return false; } bool wxFileTypeImpl::GetMimeTypes(wxArrayString& mimeTypes) const { wxString s; - + if (GetMimeType(&s)) { mimeTypes.Clear(); mimeTypes.Add(s); - return TRUE; + return true; } - else - return FALSE; + else + return false; } bool wxFileTypeImpl::GetIcon(wxIconLocation *WXUNUSED(icon)) const { // no such file type or no value or incorrect icon entry - return FALSE; + return false; } bool wxFileTypeImpl::GetDescription(wxString *desc) const { - return FALSE; + return false; } size_t @@ -223,6 +219,6 @@ wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& ftInfo) bool wxMimeTypesManagerImpl::Unassociate(wxFileType *ft) { - return FALSE; + return false; }