From: Ove Kaaven Date: Fri, 16 Apr 1999 12:49:47 +0000 (+0000) Subject: Needed the reverse operator+ too... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bf88baa63e13ac5c972f6e095f1668a626155270 Needed the reverse operator+ too... git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index 903bfcb311..201c91935d 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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 // ---------------------------------------------------------------------------