]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msdos/mimetype.cpp
Refactor wxStyledTextCtrl to share common file save/load code.
[wxWidgets.git] / src / msdos / mimetype.cpp
index 2966f22f658f7df30095a4a4f5f67b9a6023080b..a2b49913d264ec82526f899445f3671608d71f13 100644 (file)
 
 #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 <ctype.h>
 
@@ -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;
 }