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:
@@ -1078,7 +1078,7 @@ public:
|
|||||||
static wxString FormatV(const wxChar *pszFormat, va_list argptr);
|
static wxString FormatV(const wxChar *pszFormat, va_list argptr);
|
||||||
|
|
||||||
// returns the highest possible memory allocation for encoding
|
// 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
|
// raw access to string memory
|
||||||
// ensure that string has space for at least nLen characters
|
// ensure that string has space for at least nLen characters
|
||||||
|
@@ -988,7 +988,7 @@ int STRINGCLASS::compare(size_t nStart, size_t nLen,
|
|||||||
// common conversion routines
|
// 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
|
//Worst case for UTF7
|
||||||
return len * 5;
|
return len * 5;
|
||||||
|
Reference in New Issue
Block a user