fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140696 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -127,7 +127,7 @@ static const char gIDFormat[] =
|
||||
|
||||
// Nonexistent factory entry
|
||||
// This is used to mark non-existent contractid mappings
|
||||
static nsFactoryEntry * kNonExistentContractID = (nsFactoryEntry*) 1;
|
||||
static const nsFactoryEntry * const kNonExistentContractID = (nsFactoryEntry*) 1;
|
||||
|
||||
|
||||
#define NS_EMPTY_IID \
|
||||
@@ -303,7 +303,7 @@ factory_ClearEntry(PLDHashTable *aTable, PLDHashEntryHdr *aHdr)
|
||||
PL_DHashClearEntryStub(aTable, aHdr);
|
||||
}
|
||||
|
||||
static PLDHashTableOps factory_DHashTableOps = {
|
||||
static const PLDHashTableOps factory_DHashTableOps = {
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
factory_GetKey,
|
||||
@@ -352,7 +352,7 @@ contractID_ClearEntry(PLDHashTable *aTable, PLDHashEntryHdr *aHdr)
|
||||
PL_DHashClearEntryStub(aTable, aHdr);
|
||||
}
|
||||
|
||||
static PLDHashTableOps contractID_DHashTableOps = {
|
||||
static const PLDHashTableOps contractID_DHashTableOps = {
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
contractID_GetKey,
|
||||
|
||||
Reference in New Issue
Block a user