]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/rotate/rotate.cpp
changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used...
[wxWidgets.git] / samples / rotate / rotate.cpp
index fb1f8c286f061a167984500c5e2e6c4e365910d8..5927f6e7b2dde1cb793f0912fe63f3d05ea56ae9 100644 (file)
@@ -127,6 +127,9 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
 #if wxUSE_LIBPNG
     wxImage::AddHandler( new wxPNGHandler );
 #endif
@@ -153,7 +156,7 @@ bool MyApp::OnInit()
 // ----------------------------------------------------------------------------
 
 #include "wx/arrimpl.cpp"
-WX_DEFINE_OBJARRAY(ArrayOfImages);
+WX_DEFINE_OBJARRAY(ArrayOfImages)
 
 // ----------------------------------------------------------------------------
 // custom canvas control that we can draw on