]> git.saurik.com Git - wxWidgets.git/commitdiff
Needed the reverse operator+ too...
authorOve Kaaven <ovek@arcticnet.no>
Fri, 16 Apr 1999 12:49:47 +0000 (12:49 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Fri, 16 Apr 1999 12:49:47 +0000 (12:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index 903bfcb311101f4c583f18644e818570f8753be9..201c91935dfd58d54b22c5bc9e50821b7d72e8d4 100644 (file)
@@ -1005,9 +1005,13 @@ wxString WXDLLEXPORT operator+(const wxChar *psz, const wxString& string);
 #if wxUSE_UNICODE
 wxString WXDLLEXPORT operator+(const wxString& string, const wxWCharBuffer buf)
 { return string + (const wchar_t *)buf; }
+wxString WXDLLEXPORT operator+(const wxWCharBuffer buf, const wxString& string)
+{ return (const wchar_t *)buf + string; }
 #else
 wxString WXDLLEXPORT operator+(const wxString& string, const wxCharBuffer buf)
 { return string + (const char *)buf; }
+wxString WXDLLEXPORT operator+(const wxCharBuffer buf, const wxString& string)
+{ return (const char *)buf + string; }
 #endif
 
 // ---------------------------------------------------------------------------