This commit is contained in:
jkeiser%netscape.com 2003-04-05 00:16:32 +00:00
parent 8219f428d6
commit 02767a1d4f
2 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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;