bug 146532 Making Init() non-virtual (thanks dbaron for suggestion)

This commit is contained in:
dp%netscape.com 2002-07-02 18:11:53 +00:00
parent b3860439fd
commit af446c2be7
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ nsRecyclingAllocator::nsRecyclingAllocator(PRUint32 nbucket, PRUint32 recycleAft
Init(nbucket, recycleAfter, id);
}
NS_IMETHODIMP
nsresult
nsRecyclingAllocator::Init(PRUint32 nbucket, PRUint32 recycleAfter, const char *id)
{
nsAutoLock lock(mLock);

View File

@ -147,7 +147,7 @@ class NS_COM nsRecyclingAllocator {
const char *id = NULL);
~nsRecyclingAllocator();
NS_IMETHOD Init(PRUint32 nbucket, PRUint32 recycleAfter, const char *id);
nsresult Init(PRUint32 nbucket, PRUint32 recycleAfter, const char *id);
// Allocation and free routines
void* Malloc(PRUint32 size, PRBool zeroit = PR_FALSE);