]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/image.cpp
Don't use generic wxListCtrl style for wxListMainWindow.
[wxWidgets.git] / src / common / image.cpp
index ebb8931854b6ee6b068e76cd696ab786efcd9ef2..ef7fb58dd9f5a96467d9b96315878263345709f8 100644 (file)
@@ -142,6 +142,7 @@ bool wxImage::Create(const char* const* xpmData)
     (*this) = decoder.ReadData(xpmData);
     return IsOk();
 #else
+    wxUnusedVar(xpmData);
     return false;
 #endif
 }
@@ -2575,6 +2576,7 @@ bool wxImage::SaveFile( wxOutputStream& stream, const wxString& mimetype ) const
     if ( !handler )
     {
         wxLogWarning( _("No image handler for type %s defined."), mimetype.GetData() );
+        return false;
     }
 
     return DoSave(*handler, stream);