From: Mart Raudsepp Date: Wed, 5 Apr 2006 10:02:28 +0000 (+0000) Subject: encconv.cpp: Remove comment about 5 being big enough value for ENC_PER_PLATFORM ... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc845a614214e2ac62ddb3108ddc5c8306f304ac encconv.cpp: Remove comment about 5 being big enough value for ENC_PER_PLATFORM - it should be the minimum necessary instead. fmapbase.cpp: Slightly reduce the size of an array - it should be reduced further (we only have one item with the size of 9, rest are not over 6) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/encconv.cpp b/src/common/encconv.cpp index f43d0687e4..15509c9cbc 100644 --- a/src/common/encconv.cpp +++ b/src/common/encconv.cpp @@ -376,11 +376,9 @@ wxString wxEncodingConverter::Convert(const wxString& input) const #define NUM_OF_PLATFORMS 4 /*must conform to enum wxPLATFORM_XXXX !!!*/ #define ENC_PER_PLATFORM 3 - // max no. of encodings for one language used on one platform - // Anybody thinks 5 is not enough? ;-) - - // It is too much. Using maximum of everything at the current moment to not - // make the library larger than necessary. Make larger only if necessary - MR + // max no. of encodings for one language used on one platform. + // Using maximum of everything at the current moment to not make the + // library larger than necessary. Make larger only if necessary - MR static const wxFontEncoding EquivalentEncodings[][NUM_OF_PLATFORMS][ENC_PER_PLATFORM+1] = { diff --git a/src/common/fmapbase.cpp b/src/common/fmapbase.cpp index 85981bc1f1..f148a5cd21 100644 --- a/src/common/fmapbase.cpp +++ b/src/common/fmapbase.cpp @@ -155,7 +155,7 @@ static const wxChar* gs_encodingDescs[] = }; // and the internal names (these are not translated on purpose!) -static const wxChar* gs_encodingNames[WXSIZEOF(gs_encodingDescs)][10] = +static const wxChar* gs_encodingNames[WXSIZEOF(gs_encodingDescs)][9] = { // names from the columns correspond to these OS: // Linux Solaris and IRIX HP-UX AIX