]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/regtest/regtest.cpp
Fix unused param warnings
[wxWidgets.git] / samples / regtest / regtest.cpp
index a0c05f3a962c1b46853d722763ce83d262dedce6..a7dc10acebe10c4869a345a6a616ea7e4bca59dd 100644 (file)
@@ -318,6 +318,9 @@ IMPLEMENT_APP(RegApp)
 // `Main program' equivalent, creating windows and returning main app frame
 bool RegApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     // create the main frame window and show it
     RegFrame *frame = new RegFrame(NULL, _T("wxRegTest"), 50, 50, 600, 350);
     frame->Show(true);