зеркало из https://github.com/mozilla/pjs.git
OS/2 Tinderbox breakage
Attempt 2 to fix this - just cast the functions
This commit is contained in:
Родитель
3cd1429629
Коммит
bdf3d42400
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче