mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940170 - part 3 - constify PLDHashTableOps in dom/; r=bz
This commit is contained in:
parent
33e3e389eb
commit
745a1e12ba
@ -337,7 +337,7 @@ nsScriptNameSpaceManager::RegisterInterface(const char* aIfName,
|
|||||||
nsresult
|
nsresult
|
||||||
nsScriptNameSpaceManager::Init()
|
nsScriptNameSpaceManager::Init()
|
||||||
{
|
{
|
||||||
static PLDHashTableOps hash_table_ops =
|
static const PLDHashTableOps hash_table_ops =
|
||||||
{
|
{
|
||||||
PL_DHashAllocTable,
|
PL_DHashAllocTable,
|
||||||
PL_DHashFreeTable,
|
PL_DHashFreeTable,
|
||||||
|
@ -993,7 +993,7 @@ nsJSObjWrapper::GetNewOrUsed(NPP npp, JSContext *cx, JS::Handle<JSObject*> obj)
|
|||||||
if (!sJSObjWrappers.ops) {
|
if (!sJSObjWrappers.ops) {
|
||||||
// No hash yet (or any more), initialize it.
|
// No hash yet (or any more), initialize it.
|
||||||
|
|
||||||
static PLDHashTableOps ops =
|
static const PLDHashTableOps ops =
|
||||||
{
|
{
|
||||||
PL_DHashAllocTable,
|
PL_DHashAllocTable,
|
||||||
PL_DHashFreeTable,
|
PL_DHashFreeTable,
|
||||||
|
Loading…
Reference in New Issue
Block a user