X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/127eab18f80e5b298b8c0326609ed811035e6829..48271822ef3d56c8f91af882b68fd1b674a8e8e6:/src/msdos/mimetype.cpp diff --git a/src/msdos/mimetype.cpp b/src/msdos/mimetype.cpp index 0665e79ab9..0be46cd73d 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 ;