]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
refactored code to do brush adjustment for bg drawing in only one place
[wxWidgets.git] / include / wx / string.h
index db9a54b8b376be868b8782928e040f9f2772ee0e..bdd38c93a12d27c223a595ca73cedb5cde0c48b4 100644 (file)
@@ -830,8 +830,11 @@ public:
 #if wxUSE_WCHAR_T
     const wxWCharBuffer wc_str(wxMBConv& conv) const;
 #endif // wxUSE_WCHAR_T
-
+#ifdef __WXOSX__
+    const wxCharBuffer fn_str() const { return wxConvFile.cWC2WX( wc_str( wxConvLocal ) ); }
+#else
     const wxChar* fn_str() const { return c_str(); }
+#endif
 #endif // Unicode/ANSI
 
   // overloaded assignment