Attempt 2 to fix this - just cast the functions
This commit is contained in:
mkaply%us.ibm.com 2000-07-22 15:19:57 +00:00
Родитель c03c730a44
Коммит f83c889180
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

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