Added an additional constructor

This commit is contained in:
troy
1998-06-11 22:48:25 +00:00
parent 06b78615b4
commit e830c3f3e9
6 changed files with 27 additions and 0 deletions

View File

@@ -28,6 +28,14 @@ nsVoidArray::nsVoidArray()
mCount = 0;
}
nsVoidArray::nsVoidArray(PRInt32 aCount)
{
NS_PRECONDITION(aCount > 0, "bad count");
mCount = mArraySize = aCount;
mArray = new void*[mCount];
nsCRT::memset(mArray, 0, mCount * sizeof(void*));
}
nsVoidArray& nsVoidArray::operator=(const nsVoidArray& other)
{
if (nsnull != mArray) {