Fix bug in void array's assignment operator. r=scc

This commit is contained in:
hyatt%netscape.com 2005-11-02 16:04:28 +00:00
Родитель fee902dd43
Коммит 364a6e9b71
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -96,6 +96,8 @@ nsVoidArray& nsVoidArray::operator=(const nsVoidArray& other)
SetArraySize(otherCount);
mImpl->mCount = otherCount;
SetArrayOwner(PR_TRUE);
nsCRT::memcpy(mImpl->mArray, other.mImpl->mArray, mImpl->mCount * sizeof(void*));
}
}
else {