From: Vadim Zeitlin Date: Thu, 28 Apr 2011 16:57:21 +0000 (+0000) Subject: Remove fixed size of gs_encodingNames array in font mapper code. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/783d8c1131679d4032266ea7913e95a756808e8f Remove fixed size of gs_encodingNames array in font mapper code. Specifying the size explicitly made wxCOMPILE_TIME_ASSERT() checking that the array sizes were synchronized useless as the array always had the correct size, independently of the real number of elements in it. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/fmapbase.cpp b/src/common/fmapbase.cpp index cc793a1139..5d52d48d75 100644 --- a/src/common/fmapbase.cpp +++ b/src/common/fmapbase.cpp @@ -236,7 +236,7 @@ static const char* const gs_encodingDescs[] = }; // and the internal names (these are not translated on purpose!) -static const wxChar* const gs_encodingNames[WXSIZEOF(gs_encodingDescs)][9] = +static const wxChar* const gs_encodingNames[][9] = { // names from the columns correspond to these OS: // Linux Solaris and IRIX HP-UX AIX