added argc and argv arguments to wxInitializer ctor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-01-17 00:13:39 +00:00
parent 297ebe6b97
commit 76cebbff35

View File

@ -72,7 +72,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; }