X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/127eab18f80e5b298b8c0326609ed811035e6829..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/msdos/mimetype.cpp diff --git a/src/msdos/mimetype.cpp b/src/msdos/mimetype.cpp index 0665e79ab9..a2b49913d2 100644 --- a/src/msdos/mimetype.cpp +++ b/src/msdos/mimetype.cpp @@ -13,30 +13,26 @@ #include "wx/wxprec.h" #ifdef __BORLANDC__ - #pragma hdrstop + #pragma hdrstop #endif -#ifndef WX_PRECOMP - #include "wx/defs.h" -#endif +#if wxUSE_MIMETYPE + +#include "wx/msdos/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 -#if wxUSE_MIMETYPE - -#include "wx/log.h" #include "wx/file.h" -#include "wx/intl.h" -#include "wx/dynarray.h" #include "wx/confbase.h" -#include "wx/msdos/mimetype.h" - // other standard headers #include @@ -69,7 +65,7 @@ bool wxFileTypeImpl::GetExtensions(wxArrayString& WXUNUSED(extensions)) bool wxFileTypeImpl::GetMimeType(wxString *mimeType) const { - if ( m_strFileType.Length() > 0 ) + if ( !m_strFileType.empty() ) { *mimeType = m_strFileType ; return true ; @@ -108,7 +104,7 @@ wxFileTypeImpl::GetAllCommands(wxArrayString * WXUNUSED(verbs), wxArrayString * WXUNUSED(commands), const wxFileType::MessageParameters& WXUNUSED(params)) const { - wxFAIL_MSG( _T("wxFileTypeImpl::GetAllCommands() not yet implemented") ); + wxFAIL_MSG( wxT("wxFileTypeImpl::GetAllCommands() not yet implemented") ); return 0; } @@ -116,13 +112,13 @@ void wxMimeTypesManagerImpl::Initialize(int WXUNUSED(mailcapStyles), const wxString& WXUNUSED(extraDir)) { - wxFAIL_MSG( _T("wxMimeTypesManagerImpl::Initialize() not yet implemented") ); + wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::Initialize() not yet implemented") ); } void wxMimeTypesManagerImpl::ClearData() { - wxFAIL_MSG( _T("wxMimeTypesManagerImpl::ClearData() not yet implemented") ); + wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::ClearData() not yet implemented") ); } // extension -> file type @@ -209,7 +205,7 @@ wxMimeTypesManagerImpl::GetFileTypeFromMimeType(const wxString& WXUNUSED(mimeTyp size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& WXUNUSED(mimetypes)) { // VZ: don't know anything about this for Mac - wxFAIL_MSG( _T("wxMimeTypesManagerImpl::EnumAllFileTypes() not yet implemented") ); + wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::EnumAllFileTypes() not yet implemented") ); return 0; } @@ -217,7 +213,7 @@ size_t wxMimeTypesManagerImpl::EnumAllFileTypes(wxArrayString& WXUNUSED(mimetype wxFileType * wxMimeTypesManagerImpl::Associate(const wxFileTypeInfo& WXUNUSED(ftInfo)) { - wxFAIL_MSG( _T("wxMimeTypesManagerImpl::Associate() not yet implemented") ); + wxFAIL_MSG( wxT("wxMimeTypesManagerImpl::Associate() not yet implemented") ); return NULL; }