Bug 940170 - part 4 - constify PLDHashTableOps in miscellaneous other places; r=bz

This commit is contained in:
Nathan Froyd 2013-11-18 21:58:27 -05:00
Родитель 08e317a625
Коммит 1cdb070dd9
4 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -13,7 +13,7 @@
using namespace mozilla;
PLDHashTableOps nsCommandParams::sHashOps =
const PLDHashTableOps nsCommandParams::sHashOps =
{
PL_DHashAllocTable,
PL_DHashFreeTable,

Просмотреть файл

@ -147,7 +147,7 @@ protected:
int32_t mCurEntry;
int32_t mNumEntries; // number of entries at start of enumeration (-1 indicates not known)
static PLDHashTableOps sHashOps;
static const PLDHashTableOps sHashOps;
};

Просмотреть файл

@ -139,7 +139,7 @@ struct ResourceHashEntry : public PLDHashEntryHdr {
}
};
static PLDHashTableOps gResourceTableOps = {
static const PLDHashTableOps gResourceTableOps = {
PL_DHashAllocTable,
PL_DHashFreeTable,
ResourceHashEntry::HashKey,
@ -177,7 +177,7 @@ struct LiteralHashEntry : public PLDHashEntryHdr {
}
};
static PLDHashTableOps gLiteralTableOps = {
static const PLDHashTableOps gLiteralTableOps = {
PL_DHashAllocTable,
PL_DHashFreeTable,
LiteralHashEntry::HashKey,
@ -214,7 +214,7 @@ struct IntHashEntry : public PLDHashEntryHdr {
}
};
static PLDHashTableOps gIntTableOps = {
static const PLDHashTableOps gIntTableOps = {
PL_DHashAllocTable,
PL_DHashFreeTable,
IntHashEntry::HashKey,
@ -255,7 +255,7 @@ struct DateHashEntry : public PLDHashEntryHdr {
}
};
static PLDHashTableOps gDateTableOps = {
static const PLDHashTableOps gDateTableOps = {
PL_DHashAllocTable,
PL_DHashFreeTable,
DateHashEntry::HashKey,
@ -373,7 +373,7 @@ struct BlobHashEntry : public PLDHashEntryHdr {
}
};
static PLDHashTableOps gBlobTableOps = {
static const PLDHashTableOps gBlobTableOps = {
PL_DHashAllocTable,
PL_DHashFreeTable,
BlobHashEntry::HashKey,

Просмотреть файл

@ -116,7 +116,7 @@ nsDocLoader::nsDocLoader()
}
#endif /* PR_LOGGING */
static PLDHashTableOps hash_table_ops =
static const PLDHashTableOps hash_table_ops =
{
PL_DHashAllocTable,
PL_DHashFreeTable,