Bug 941598 - constify PLDHashTableOps in netwerk/; r=jduell

This commit is contained in:
Nathan Froyd 2013-11-20 13:17:01 -05:00
parent 55951c4497
commit e9d9f618bc
8 changed files with 12 additions and 12 deletions

View File

@ -1156,7 +1156,7 @@ nsLoadGroupConnectionInfo::SetSpdyPushCache(mozilla::net::SpdyPushCache *aSpdyPu
nsresult nsLoadGroup::Init()
{
static PLDHashTableOps hash_table_ops =
static const PLDHashTableOps hash_table_ops =
{
PL_DHashAllocTable,
PL_DHashFreeTable,

View File

@ -374,7 +374,7 @@ nsCacheEntryInfo::IsStreamBased(bool * result)
* nsCacheEntryHashTable
*****************************************************************************/
PLDHashTableOps
const PLDHashTableOps
nsCacheEntryHashTable::ops =
{
PL_DHashAllocTable,

View File

@ -303,9 +303,9 @@ private:
void * arg);
// member variables
static PLDHashTableOps ops;
PLDHashTable table;
bool initialized;
static const PLDHashTableOps ops;
PLDHashTable table;
bool initialized;
};
#endif // _nsCacheEntry_h_

View File

@ -122,7 +122,7 @@ nsDiskCacheBinding::EnsureStreamIO()
*
*****************************************************************************/
PLDHashTableOps nsDiskCacheBindery::ops =
const PLDHashTableOps nsDiskCacheBindery::ops =
{
PL_DHashAllocTable,
PL_DHashFreeTable,

View File

@ -112,7 +112,7 @@ private:
nsresult AddBinding(nsDiskCacheBinding * binding);
// member variables
static PLDHashTableOps ops;
static const PLDHashTableOps ops;
PLDHashTable table;
bool initialized;
};

View File

@ -99,7 +99,7 @@ public:
SHA1Sum::Hash mHash;
};
PLDHashTableOps CacheFileHandles::mOps =
const PLDHashTableOps CacheFileHandles::mOps =
{
PL_DHashAllocTable,
PL_DHashFreeTable,

View File

@ -83,9 +83,9 @@ private:
PLDHashEntryHdr *to);
static void ClearEntry(PLDHashTable *table, PLDHashEntryHdr *entry);
static PLDHashTableOps mOps;
PLDHashTable mTable;
bool mInitialized;
static const PLDHashTableOps mOps;
PLDHashTable mTable;
bool mInitialized;
};
////////////////////////////////////////////////////////////////////////////////

View File

@ -352,7 +352,7 @@ HostDB_InitEntry(PLDHashTable *table,
return true;
}
static PLDHashTableOps gHostDB_ops =
static const PLDHashTableOps gHostDB_ops =
{
PL_DHashAllocTable,
PL_DHashFreeTable,