X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/18f3decb46a80b38801dd6590d08eb525d3a3963..2cf3a6d7bef6f20bea35062dd3d4dbf0aec9efb5:/src/mac/classic/mimetmac.cpp diff --git a/src/mac/classic/mimetmac.cpp b/src/mac/classic/mimetmac.cpp index 7a99856444..6636261d9a 100644 --- a/src/mac/classic/mimetmac.cpp +++ b/src/mac/classic/mimetmac.cpp @@ -13,25 +13,25 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop + #pragma hdrstop #endif +#include "wx/mac/mimetype.h" + #ifndef WX_PRECOMP - #include "wx/string.h" - #if wxUSE_GUI - #include "wx/icon.h" - #endif + #include "wx/dynarray.h" + #include "wx/string.h" + #include "wx/intl.h" + #include "wx/log.h" + #if wxUSE_GUI + #include "wx/icon.h" + #endif #endif //WX_PRECOMP -#include "wx/log.h" #include "wx/file.h" -#include "wx/intl.h" -#include "wx/dynarray.h" #include "wx/confbase.h" -#include "wx/mac/mimetype.h" - // other standard headers #include @@ -61,7 +61,7 @@ bool wxFileTypeImpl::GetExtensions(wxArrayString& extensions) bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const { - if ( m_strFileType.Length() > 0 ) + if ( !m_strFileType.empty() ) { *mimeType = m_strFileType ; return true ; @@ -217,4 +217,3 @@ wxMimeTypesManagerImpl::Unassociate(wxFileType *ft) { return false; } -