mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 940170 - part 2 - constify PLDHashTableOps in content/; r=bz
This commit is contained in:
parent
4c7f87dd5b
commit
8bee1ff184
@ -205,7 +205,7 @@ NS_GetContentList(nsINode* aRootNode,
|
||||
return list.forget();
|
||||
}
|
||||
|
||||
static PLDHashTableOps hash_table_ops =
|
||||
static const PLDHashTableOps hash_table_ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
@ -326,7 +326,7 @@ GetFuncStringContentList(nsINode* aRootNode,
|
||||
|
||||
nsRefPtr<nsCacheableFuncStringContentList> list;
|
||||
|
||||
static PLDHashTableOps hash_table_ops =
|
||||
static const PLDHashTableOps hash_table_ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
|
@ -395,7 +395,7 @@ nsContentUtils::Init()
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
if (!sEventListenerManagersHash.ops) {
|
||||
static PLDHashTableOps hash_table_ops =
|
||||
static const PLDHashTableOps hash_table_ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
|
@ -3592,7 +3592,7 @@ nsDocument::SetSubDocumentFor(Element* aElement, nsIDocument* aSubDoc)
|
||||
if (!mSubDocuments) {
|
||||
// Create a new hashtable
|
||||
|
||||
static PLDHashTableOps hash_table_ops =
|
||||
static const PLDHashTableOps hash_table_ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
|
@ -92,7 +92,7 @@ InitObjectEntry(PLDHashTable* table, PLDHashEntryHdr* entry, const void* key)
|
||||
|
||||
|
||||
|
||||
static PLDHashTableOps ObjectTableOps = {
|
||||
static const PLDHashTableOps ObjectTableOps = {
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
PL_DHashVoidPtrKeyStub,
|
||||
|
@ -780,7 +780,7 @@ XULDocument::AddBroadcastListenerFor(Element& aBroadcaster, Element& aListener,
|
||||
return;
|
||||
}
|
||||
|
||||
static PLDHashTableOps gOps = {
|
||||
static const PLDHashTableOps gOps = {
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
PL_DHashVoidPtrKeyStub,
|
||||
|
Loading…
Reference in New Issue
Block a user