]> git.saurik.com Git - wxWidgets.git/commitdiff
Remove fixed size of gs_encodingNames array in font mapper code.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Apr 2011 16:57:21 +0000 (16:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 28 Apr 2011 16:57:21 +0000 (16:57 +0000)
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

src/common/fmapbase.cpp

index cc793a1139652f18073d63260b6513980e3d9916..5d52d48d75c84d57461915e3b1fa08b686ae1846 100644 (file)
@@ -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