Bug 1255655 - Const-ify ns{Default,Extra}MimeTypeEntry arrays. r=bz.

--HG--
extra : rebase_source : 689669e6fe2cf9c6595df04ea7b0637aa2f1d78c
This commit is contained in:
Nicholas Nethercote 2016-03-11 13:41:28 +11:00
Родитель 7f5bcf3c52
Коммит 755a8e0277
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -497,7 +497,7 @@ struct nsDefaultMimeTypeEntry {
* Default extension->mimetype mappings. These are not overridable.
* If you add types here, make sure they are lowercase, or you'll regret it.
*/
static nsDefaultMimeTypeEntry defaultMimeEntries [] =
static const nsDefaultMimeTypeEntry defaultMimeEntries[] =
{
// The following are those extensions that we're asked about during startup,
// sorted by order used
@ -557,7 +557,7 @@ struct nsExtraMimeTypeEntry {
* overridden by user helper app prefs.
* If you add types here, make sure they are lowercase, or you'll regret it.
*/
static nsExtraMimeTypeEntry extraMimeEntries [] =
static const nsExtraMimeTypeEntry extraMimeEntries[] =
{
#if defined(XP_MACOSX) // don't define .bin on the mac...use internet config to look that up...
{ APPLICATION_OCTET_STREAM, "exe,com", "Binary File" },
@ -634,7 +634,7 @@ static nsExtraMimeTypeEntry extraMimeEntries [] =
* File extensions for which decoding should be disabled.
* NOTE: These MUST be lower-case and ASCII.
*/
static nsDefaultMimeTypeEntry nonDecodableExtensions [] = {
static const nsDefaultMimeTypeEntry nonDecodableExtensions[] = {
{ APPLICATION_GZIP, "gz" },
{ APPLICATION_GZIP, "tgz" },
{ APPLICATION_ZIP, "zip" },