]> git.saurik.com Git - wxWidgets.git/commitdiff
AddFile(wxImage&) -> AddFile(const wxImage&)
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Jul 2004 21:59:43 +0000 (21:59 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 20 Jul 2004 21:59:43 +0000 (21:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/fs_mem.h
src/common/fs_mem.cpp

index 3a89e19e1b50f7e201a221f4874cc01542bc85cb..90709673262bd322030aac4441d456f590eb8b22 100644 (file)
@@ -90,7 +90,9 @@ public:
     }
 
 #if wxUSE_IMAGE
-    static void AddFile(const wxString& filename, wxImage& image, long type);
+    static void AddFile(const wxString& filename,
+                        const wxImage& image,
+                        long type);
 
     static void AddFile(const wxString& filename,
                         const wxBitmap& bitmap,
index 8e77fde518d08b2d835e08dff87bd72cf8763e40..de45ca8b96ac7826bcb8071ebe0d7cf26ff7d99b 100644 (file)
@@ -216,7 +216,9 @@ bool wxMemoryFSHandlerBase::CheckHash(const wxString& filename)
 
 #if wxUSE_IMAGE
 /*static*/ void
-wxMemoryFSHandler::AddFile(const wxString& filename, wxImage& image, long type)
+wxMemoryFSHandler::AddFile(const wxString& filename,
+                           const wxImage& image,
+                           long type)
 {
     if (!CheckHash(filename)) return;
 
@@ -232,7 +234,10 @@ wxMemoryFSHandler::AddFile(const wxString& filename, wxImage& image, long type)
     }
 }
 
-/*static*/ void wxMemoryFSHandler::AddFile(const wxString& filename, const wxBitmap& bitmap, long type)
+/*static*/ void
+wxMemoryFSHandler::AddFile(const wxString& filename,
+                           const wxBitmap& bitmap,
+                           long type)
 {
     wxImage img = bitmap.ConvertToImage();
     AddFile(filename, img, type);