X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbf1f0e5cffb8c01696eb26e254857a61f017d70..bb8204ef8236a9d1f39516832947ea4081f22146:/utils/nplugin/samples/simple/simple.cpp diff --git a/utils/nplugin/samples/simple/simple.cpp b/utils/nplugin/samples/simple/simple.cpp index 137e7b0585..b850282386 100644 --- a/utils/nplugin/samples/simple/simple.cpp +++ b/utils/nplugin/samples/simple/simple.cpp @@ -1,6 +1,6 @@ /* * File: simple.cpp - * Purpose: Minimal wxWindows plugin + * Purpose: Minimal wxWidgets plugin * Author: Julian Smart * Created: 1997 * Updated: @@ -9,11 +9,6 @@ /* static const char sccsid[] = "%W% %G%"; */ -#ifdef __GNUG__ -#pragma implementation -#pragma interface -#endif - #include "wx/wxprec.h" #ifdef __BORLANDC__ @@ -32,7 +27,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 +65,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