]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appbase.cpp
better attempts to try .utf-8 suffix
[wxWidgets.git] / src / common / appbase.cpp
index 216d9b86473b74cd393fa97ef90cc16408d7e247..261fd0fa2389bea2b1ff962a5219c5e42f6ce08b 100644 (file)
@@ -37,9 +37,7 @@
 #include "wx/apptrait.h"
 #include "wx/cmdline.h"
 #include "wx/confbase.h"
-#if wxUSE_FILENAME
-    #include "wx/filename.h"
-#endif // wxUSE_FILENAME
+#include "wx/filename.h"
 #include "wx/msgout.h"
 #include "wx/tokenzr.h"
 
@@ -132,11 +130,7 @@ bool wxAppConsole::Initialize(int& argc, wxChar **argv)
     if ( m_appName.empty() && argv )
     {
         // the application name is, by default, the name of its executable file
-#if wxUSE_FILENAME
         wxFileName::SplitPath(argv[0], NULL, &m_appName, NULL);
-#else // !wxUSE_FILENAME
-        m_appName = argv[0];
-#endif // wxUSE_FILENAME/!wxUSE_FILENAME
     }
 
     return true;