]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/file.h
fix unused parameter warning when wxHAS_NATIVE_OVERLAY (patch 1692332)
[wxWidgets.git] / include / wx / file.h
index 243d2b83f83a63815c2819d80f8a9d1002a5f948..7712d65f2cf9b0ed02584f2b716d794046f3a7f9 100644 (file)
@@ -97,12 +97,7 @@ public:
     // returns the number of bytes written
   size_t Write(const void *pBuf, size_t nCount);
     // returns true on success
-  bool Write(const wxString& s, wxMBConv& conv = wxConvUTF8)
-  {
-      const wxWX2MBbuf buf = s.mb_str(conv);
-      size_t size = strlen(buf);
-      return Write((const char *) buf, size) == size;
-  }
+  bool Write(const wxString& s, const wxMBConv& conv = wxConvUTF8);
     // flush data not yet written
   bool Flush();
 
@@ -172,7 +167,7 @@ public:
 
   // I/O (both functions return true on success, false on failure)
   bool Write(const void *p, size_t n) { return m_file.Write(p, n) == n; }
-  bool Write(const wxString& str, wxMBConv& conv = wxConvUTF8)
+  bool Write(const wxString& str, const wxMBConv& conv = wxConvUTF8)
     { return m_file.Write(str, conv); }
 
   // different ways to close the file