]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/erase/erase.cpp
added a period at the end of a sentence (test commit, really)
[wxWidgets.git] / samples / erase / erase.cpp
index f3b752b6668d8782fd9d40e44aa5cf15fe7aeb8b..94dd570ec49a50f0f76025118c2e69bab97ef71b 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation
-    #pragma interface
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -122,6 +117,9 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     MyFrame *frame = new MyFrame;
 
     frame->Show(true);