r=jband, sr=brendan
Fix some places where we used casts instead of CALLBACKs
This commit is contained in:
mkaply@us.ibm.com
2001-03-27 22:59:33 +00:00
parent a8066b77dd
commit b7414cec38
5 changed files with 9 additions and 9 deletions

View File

@@ -23,13 +23,13 @@
#include "nsErrorService.h"
#include "nsCRT.h"
static void*
static void* PR_CALLBACK
CloneCString(nsHashKey *aKey, void *aData, void* closure)
{
return nsCRT::strdup((const char*)aData);
}
static PRBool
static PRBool PR_CALLBACK
DeleteCString(nsHashKey *aKey, void *aData, void* closure)
{
nsCRT::free((char*)aData);
@@ -37,7 +37,7 @@ DeleteCString(nsHashKey *aKey, void *aData, void* closure)
}
nsInt2StrHashtable::nsInt2StrHashtable()
: mHashtable((nsHashtableCloneElementFunc)CloneCString, nsnull, (nsHashtableEnumFunc)DeleteCString, nsnull, 16)
: mHashtable(CloneCString, nsnull, DeleteCString, nsnull, 16)
{
}