From c096ba5ea1c7536e00d8eb6bcad3f0a4a6edb13e Mon Sep 17 00:00:00 2001 From: David Elliott Date: Sat, 30 Oct 2004 05:33:47 +0000 Subject: [PATCH] Make wxString::WorstEncodingCase take a const wxMBConv& git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 2 +- src/common/string.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/string.h b/include/wx/string.h index 0562d9a915..2bc8b54afd 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -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 diff --git a/src/common/string.cpp b/src/common/string.cpp index 51acab0189..f6b388e45b 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -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; -- 2.45.2