Bug 942109 - constify PLDHashTableOps in security/manager/; r=briansmith

This commit is contained in:
Nathan Froyd 2013-11-20 13:42:08 -05:00
parent 8d0f3c03bb
commit c8cd69967e
3 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ RequestMapInitEntry(PLDHashTable *table, PLDHashEntryHdr *hdr,
return true; return true;
} }
static PLDHashTableOps gMapOps = { static const PLDHashTableOps gMapOps = {
PL_DHashAllocTable, PL_DHashAllocTable,
PL_DHashFreeTable, PL_DHashFreeTable,
PL_DHashVoidPtrKeyStub, PL_DHashVoidPtrKeyStub,

View File

@ -90,7 +90,7 @@ CompareCacheClearEntry(PLDHashTable *table, PLDHashEntryHdr *hdr)
entryPtr->~CompareCacheHashEntryPtr(); entryPtr->~CompareCacheHashEntryPtr();
} }
static PLDHashTableOps gMapOps = { static const PLDHashTableOps gMapOps = {
PL_DHashAllocTable, PL_DHashAllocTable,
PL_DHashFreeTable, PL_DHashFreeTable,
PL_DHashVoidPtrKeyStub, PL_DHashVoidPtrKeyStub,

View File

@ -32,7 +32,7 @@ ObjectSetInitEntry(PLDHashTable *table, PLDHashEntryHdr *hdr,
return true; return true;
} }
static PLDHashTableOps gSetOps = { static const PLDHashTableOps gSetOps = {
PL_DHashAllocTable, PL_DHashAllocTable,
PL_DHashFreeTable, PL_DHashFreeTable,
PL_DHashVoidPtrKeyStub, PL_DHashVoidPtrKeyStub,