Make wxString::WorstEncodingCase take a const wxMBConv&

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott 2004-10-30 05:33:47 +00:00
parent 459c621258
commit c096ba5ea1
2 changed files with 2 additions and 2 deletions

View File

@ -1078,7 +1078,7 @@ public:
static wxString FormatV(const wxChar *pszFormat, va_list argptr);
// returns the highest possible memory allocation for encoding
static size_t WorstEncodingCase(size_t len, wxMBConv& conv);
static size_t WorstEncodingCase(size_t len, const wxMBConv& conv);
// raw access to string memory
// ensure that string has space for at least nLen characters

View File

@ -988,7 +988,7 @@ int STRINGCLASS::compare(size_t nStart, size_t nLen,
// common conversion routines
// ---------------------------------------------------------------------------
size_t wxString::WorstEncodingCase(size_t len, wxMBConv& WXUNUSED(conv))
size_t wxString::WorstEncodingCase(size_t len, const wxMBConv& WXUNUSED(conv))
{
//Worst case for UTF7
return len * 5;