remove memcpy function from nsCRT, eliminate 2 new nsCRT::memcpy callers
and fix up alighment problems from previous patch, bug 118135, sr=brenda r=dp git-svn-id: svn://10.0.0.236/trunk@112913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1085,8 +1085,8 @@ HTMLAttributesImpl::UnsetAttributeName(nsIAtom* aAttrName, PRBool& aFound)
|
||||
memcpy(mNameBuffer, mAttrNames, index * sizeof(nsIAtom*));
|
||||
}
|
||||
if (index < mAttrCount) {
|
||||
memcpy(&(mNameBuffer[index]), &(mAttrNames[index + 1]),
|
||||
(mAttrCount - index) * sizeof(nsIAtom*));
|
||||
memcpy(&mNameBuffer[index], &mAttrNames[index + 1],
|
||||
(mAttrCount - index) * sizeof(nsIAtom*));
|
||||
}
|
||||
delete [] mAttrNames;
|
||||
mAttrNames = mNameBuffer;
|
||||
|
||||
Reference in New Issue
Block a user