X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..51dc95a4c8ccb00741be48f6353749ada3e9f39a:/utils/nplugin/samples/simple/simple.cpp?ds=sidebyside diff --git a/utils/nplugin/samples/simple/simple.cpp b/utils/nplugin/samples/simple/simple.cpp index 137e7b0585..4e4a83f593 100644 --- a/utils/nplugin/samples/simple/simple.cpp +++ b/utils/nplugin/samples/simple/simple.cpp @@ -32,7 +32,7 @@ // Define a new application type class MyApp: public wxPluginApp { public: - virtual wxFrame *OnInit(void); + virtual bool OnInit(void); virtual wxPluginFrame* OnNewInstance(const wxPluginData& data); }; @@ -70,9 +70,9 @@ IMPLEMENT_APP(MyApp) // No app initialisation necessary, and for a plugin there is no // top frame. -wxFrame *MyApp::OnInit(void) +bool MyApp::OnInit(void) { - return NULL; + return TRUE; } // Called whenever a new plugin instance is called. We could check