]> git.saurik.com Git - wxWidgets.git/commitdiff
added argc and argv arguments to wxInitializer ctor
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Jan 2005 00:13:39 +0000 (00:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 17 Jan 2005 00:13:39 +0000 (00:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/init.h

index a30de7522871f35b0448a8a2c78412821b981a64..7cdcda57f8b49014ca14f98f351375f24e0ef971 100644 (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; }