From c6cee67252cc621feff318066ac0dd78c848dbcb Mon Sep 17 00:00:00 2001 From: Brian Macy Date: Fri, 16 Apr 1999 18:27:29 +0000 Subject: [PATCH 1/1] Changed some parameters to be const references git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/wx/string.h b/include/wx/string.h index d4bffe6819..d4fdb53bed 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -1003,14 +1003,14 @@ wxString WXDLLEXPORT operator+(wxChar ch, const wxString& string); wxString WXDLLEXPORT operator+(const wxString& string, const wxChar *psz); wxString WXDLLEXPORT operator+(const wxChar *psz, const wxString& string); #if wxUSE_UNICODE -inline wxString WXDLLEXPORT operator+(const wxString& string, const wxWCharBuffer buf) +inline wxString WXDLLEXPORT operator+(const wxString& string, const wxWCharBuffer& buf) { return string + (const wchar_t *)buf; } -inline wxString WXDLLEXPORT operator+(const wxWCharBuffer buf, const wxString& string) +inline wxString WXDLLEXPORT operator+(const wxWCharBuffer& buf, const wxString& string) { return (const wchar_t *)buf + string; } #else -inline wxString WXDLLEXPORT operator+(const wxString& string, const wxCharBuffer buf) +inline wxString WXDLLEXPORT operator+(const wxString& string, const wxCharBuffer& buf) { return string + (const char *)buf; } -inline wxString WXDLLEXPORT operator+(const wxCharBuffer buf, const wxString& string) +inline wxString WXDLLEXPORT operator+(const wxCharBuffer& buf, const wxString& string) { return (const char *)buf + string; } #endif -- 2.45.2