X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..9aeace31b72392f7dbe55af5830ec900682b0b33:/include/wx/init.h?ds=sidebyside diff --git a/include/wx/init.h b/include/wx/init.h index a30de75228..5a66f42168 100644 --- a/include/wx/init.h +++ b/include/wx/init.h @@ -12,7 +12,8 @@ #ifndef _WX_INIT_H_ #define _WX_INIT_H_ -#include "wx/wxchar.h" +#include "wx/defs.h" +#include "wx/chartype.h" // ---------------------------------------------------------------------------- // wxEntry helper functions which allow to have more fine grained control @@ -72,7 +73,10 @@ class WXDLLIMPEXP_BASE wxInitializer { public: // initialize the library - wxInitializer() { m_ok = wxInitialize(); } + wxInitializer(int argc = 0, wxChar **argv = NULL) + { + m_ok = wxInitialize(argc, argv); + } // has the initialization been successful? (explicit test) bool IsOk() const { return m_ok; }