]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/pngread.h
fix gcc warning about possibly uninitialized variables
[wxWidgets.git] / include / wx / mac / carbon / pngread.h
index d1a8b96a5a09d194e614e92a9db25dfc993b4779..222a2c558921b571fa73582fb12a4334dfd993a5 100644 (file)
 #ifndef _WX_PNGREAD__
 #define _WX_PNGREAD__
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma interface "pngread.h"
-#endif
-
 #ifndef byte
 typedef unsigned char byte;
 #endif
@@ -92,7 +88,8 @@ public:
   virtual bool InstantiateBitmap(wxBitmap *bitmap);
   wxMask *CreateMask(void);
 
-  inline bool Ok(void) { return imageOK; }
+  inline bool Ok() const { return IsOk(); }
+  inline bool IsOk(void) { return imageOK; }
 };
 
 class wxPNGReaderIter