Fix bug in void array's assignment operator. r=scc
git-svn-id: svn://10.0.0.236/trunk@77071 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user