mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 941598 - constify PLDHashTableOps in netwerk/; r=jduell
This commit is contained in:
parent
55951c4497
commit
e9d9f618bc
@ -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,
|
||||
|
2
netwerk/cache/nsCacheEntry.cpp
vendored
2
netwerk/cache/nsCacheEntry.cpp
vendored
@ -374,7 +374,7 @@ nsCacheEntryInfo::IsStreamBased(bool * result)
|
||||
* nsCacheEntryHashTable
|
||||
*****************************************************************************/
|
||||
|
||||
PLDHashTableOps
|
||||
const PLDHashTableOps
|
||||
nsCacheEntryHashTable::ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
|
6
netwerk/cache/nsCacheEntry.h
vendored
6
netwerk/cache/nsCacheEntry.h
vendored
@ -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_
|
||||
|
2
netwerk/cache/nsDiskCacheBinding.cpp
vendored
2
netwerk/cache/nsDiskCacheBinding.cpp
vendored
@ -122,7 +122,7 @@ nsDiskCacheBinding::EnsureStreamIO()
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
PLDHashTableOps nsDiskCacheBindery::ops =
|
||||
const PLDHashTableOps nsDiskCacheBindery::ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
|
2
netwerk/cache/nsDiskCacheBinding.h
vendored
2
netwerk/cache/nsDiskCacheBinding.h
vendored
@ -112,7 +112,7 @@ private:
|
||||
nsresult AddBinding(nsDiskCacheBinding * binding);
|
||||
|
||||
// member variables
|
||||
static PLDHashTableOps ops;
|
||||
static const PLDHashTableOps ops;
|
||||
PLDHashTable table;
|
||||
bool initialized;
|
||||
};
|
||||
|
@ -99,7 +99,7 @@ public:
|
||||
SHA1Sum::Hash mHash;
|
||||
};
|
||||
|
||||
PLDHashTableOps CacheFileHandles::mOps =
|
||||
const PLDHashTableOps CacheFileHandles::mOps =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
@ -352,7 +352,7 @@ HostDB_InitEntry(PLDHashTable *table,
|
||||
return true;
|
||||
}
|
||||
|
||||
static PLDHashTableOps gHostDB_ops =
|
||||
static const PLDHashTableOps gHostDB_ops =
|
||||
{
|
||||
PL_DHashAllocTable,
|
||||
PL_DHashFreeTable,
|
||||
|
Loading…
Reference in New Issue
Block a user