X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/msdos/mimetype.cpp diff --git a/src/msdos/mimetype.cpp b/src/msdos/mimetype.cpp index 2966f22f65..a2b49913d2 100644 --- a/src/msdos/mimetype.cpp +++ b/src/msdos/mimetype.cpp @@ -18,21 +18,21 @@ #if wxUSE_MIMETYPE +#include "wx/msdos/mimetype.h" + #ifndef WX_PRECOMP + #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/msdos/mimetype.h" - // other standard headers #include @@ -65,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 ; @@ -104,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; } @@ -112,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 @@ -205,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; } @@ -213,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; }