diff --git a/include/wx/fs_mem.h b/include/wx/fs_mem.h index 62aff0c71c..9309d39b96 100644 --- a/include/wx/fs_mem.h +++ b/include/wx/fs_mem.h @@ -50,10 +50,9 @@ public: virtual wxString FindFirst(const wxString& spec, int flags = 0); virtual wxString FindNext(); -private: - static wxHashTable *m_Hash; - +protected: static bool CheckHash(const wxString& filename); + static wxHashTable *m_Hash; }; class wxMemoryFSHandler : public wxMemoryFSHandlerBase diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index c94c250e4b..d1129f30b4 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -23,7 +23,6 @@ #include "wx/bitmap.h" #include "wx/fs_mem.h" -#ifdef __WXBASE__ #ifndef WXPRECOMP #include "wx/intl.h" @@ -75,6 +74,8 @@ class MemFSHashObj : public wxObject } }; +#ifdef __WXBASE__ + //-------------------------------------------------------------------------------- // wxMemoryFSHandler @@ -206,11 +207,10 @@ bool wxMemoryFSHandlerBase::CheckHash(const wxString& filename) #if wxUSE_IMAGE /*static*/ void -wxMemoryFSHandlerBase::AddFile(const wxString& filename, wxImage& image, long type) +wxMemoryFSHandler::AddFile(const wxString& filename, wxImage& image, long type) { if (!CheckHash(filename)) return; - wxMemoryOutputStream mems; if (image.Ok() && image.SaveFile(mems, (int)type)) m_Hash -> Put(filename, new MemFSHashObj(mems));