]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_mem.cpp
Eliminate a warning
[wxWidgets.git] / src / common / fs_mem.cpp
index 3da55fdc8d1fcf410923e650c88869be7d36382d..4d9ba72339f6d63090c2ee1d7ab488f48b943559 100644 (file)
@@ -23,7 +23,6 @@
     #include "wx/hash.h"
     #include "wx/wxcrtvararg.h"
     #if wxUSE_GUI
-        #include "wx/bitmap.h"
         #include "wx/image.h"
     #endif // wxUSE_GUI
 #endif
@@ -233,12 +232,12 @@ void wxMemoryFSHandlerBase::AddFile(const wxString& filename,
 /*static*/ void
 wxMemoryFSHandler::AddFile(const wxString& filename,
                            const wxImage& image,
-                           long type)
+                           wxBitmapType type)
 {
     if (!CheckHash(filename)) return;
 
     wxMemoryOutputStream mems;
-    if (image.Ok() && image.SaveFile(mems, (int)type))
+    if (image.Ok() && image.SaveFile(mems, type))
     {
         m_Hash->Put
                 (
@@ -262,7 +261,7 @@ wxMemoryFSHandler::AddFile(const wxString& filename,
 /*static*/ void
 wxMemoryFSHandler::AddFile(const wxString& filename,
                            const wxBitmap& bitmap,
-                           long type)
+                           wxBitmapType type)
 {
 #if !defined(__WXMSW__) || wxUSE_WXDIB
     wxImage img = bitmap.ConvertToImage();