mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 06:22:33 +00:00
Warning fixes (bug 200709), patch by bsmedberg@covad.net, r=jkeiser@netscape.com, sr=alecf@netscape.com
This commit is contained in:
parent
8219f428d6
commit
02767a1d4f
@ -207,7 +207,7 @@ PLDHashOperator
|
||||
nsBaseHashtable<KeyClass,DataType,UserDataType>::s_EnumReadStub
|
||||
(PLDHashTable *table, PLDHashEntryHdr *hdr, PRUint32 number, void* arg)
|
||||
{
|
||||
EntryType* ent = (EntryType*) hdr;
|
||||
EntryType* ent = NS_STATIC_CAST(EntryType*, hdr);
|
||||
s_EnumReadArgs* eargs = (s_EnumReadArgs*) arg;
|
||||
|
||||
PLDHashOperator res = (eargs->func)(ent->GetKey(), ent->mData, eargs->userArg);
|
||||
|
@ -69,7 +69,7 @@
|
||||
*
|
||||
* @see nsTHashtable::EntryType for specification
|
||||
*/
|
||||
class NS_COM nsStringHashKey : protected PLDHashEntryHdr
|
||||
class NS_COM nsStringHashKey : public PLDHashEntryHdr
|
||||
{
|
||||
public:
|
||||
typedef const nsAString& KeyType;
|
||||
@ -102,7 +102,7 @@ private:
|
||||
*
|
||||
* @see nsTHashtable::EntryType for specification
|
||||
*/
|
||||
class NS_COM nsCStringHashKey : protected PLDHashEntryHdr
|
||||
class NS_COM nsCStringHashKey : public PLDHashEntryHdr
|
||||
{
|
||||
public:
|
||||
typedef const nsACString& KeyType;
|
||||
@ -133,10 +133,10 @@ private:
|
||||
*
|
||||
* @see nsTHashtable::EntryType for specification
|
||||
*/
|
||||
class NS_COM nsUint32HashKey : protected PLDHashEntryHdr
|
||||
class NS_COM nsUint32HashKey : public PLDHashEntryHdr
|
||||
{
|
||||
public:
|
||||
typedef PRUint32 KeyType;
|
||||
typedef const PRUint32& KeyType;
|
||||
typedef const PRUint32* KeyTypePointer;
|
||||
|
||||
nsUint32HashKey(KeyTypePointer aKey) : mValue(*aKey) { }
|
||||
@ -160,7 +160,7 @@ private:
|
||||
*
|
||||
* @see nsTHashtable::EntryType for specification
|
||||
*/
|
||||
class NS_COM nsISupportsHashKey : protected PLDHashEntryHdr
|
||||
class NS_COM nsISupportsHashKey : public PLDHashEntryHdr
|
||||
{
|
||||
public:
|
||||
typedef nsISupports* KeyType;
|
||||
@ -192,7 +192,7 @@ private:
|
||||
*
|
||||
* @see nsTHashtable::EntryType for specification
|
||||
*/
|
||||
class NS_COM nsIDHashKey : protected PLDHashEntryHdr
|
||||
class NS_COM nsIDHashKey : public PLDHashEntryHdr
|
||||
{
|
||||
public:
|
||||
typedef const nsID& KeyType;
|
||||
|
Loading…
x
Reference in New Issue
Block a user