There are a number of variables in mozilla/intl that could be made const. Making them const allows some optimizations not otherwise available, such as sharing more data between multiple running instances.
yay! so glad to see more of these bugs :)
Created attachment 124481 [details] [diff] [review] constifies some variables in intl [Checkin: Comment 4] Here is a patch that constifies some variables in intl. Interestingly, the file intl/chardet/src/nsCyrillicClass.h is automatically generated by GenCyrllicClass.cpp which already outputs static const variables, but the copy in CVS has only static variables. This patch fixes that, as well as updating some method signatures to avoid "casting away const" type warnings. All told, it makes about 1k of data const.
Comment on attachment 124481 [details] [diff] [review] constifies some variables in intl [Checkin: Comment 4] nice! sr=alecf
Checked in to the 1.5a trunk.