Bug 940170 - part 3 - constify PLDHashTableOps in dom/; r=bz

This commit is contained in:
Nathan Froyd 2013-11-18 21:53:12 -05:00
parent 33e3e389eb
commit 745a1e12ba
2 changed files with 2 additions and 2 deletions

View File

@ -337,7 +337,7 @@ nsScriptNameSpaceManager::RegisterInterface(const char* aIfName,
nsresult
nsScriptNameSpaceManager::Init()
{
static PLDHashTableOps hash_table_ops =
static const PLDHashTableOps hash_table_ops =
{
PL_DHashAllocTable,
PL_DHashFreeTable,

View File

@ -993,7 +993,7 @@ nsJSObjWrapper::GetNewOrUsed(NPP npp, JSContext *cx, JS::Handle<JSObject*> obj)
if (!sJSObjWrappers.ops) {
// No hash yet (or any more), initialize it.
static PLDHashTableOps ops =
static const PLDHashTableOps ops =
{
PL_DHashAllocTable,
PL_DHashFreeTable,