eliminate 24 callers to nsCRT::memmove to use memmove from libC instead. removed nsCRT::memove() bug 118135 r=dp sr=brendan

git-svn-id: svn://10.0.0.236/trunk@113965 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cathleen%netscape.com
2002-02-08 01:11:33 +00:00
parent 5fe5ac17ad
commit 184587ade7
15 changed files with 40 additions and 40 deletions

View File

@@ -174,7 +174,7 @@ PRBool nsValueArray::InsertValueAt(nsValueArrayValue aValue, nsValueArrayIndex a
// All those at and beyond the insertion point need to move.
//
if (aIndex < count) {
nsCRT::memmove(&mValueArray[(aIndex + 1) * mBytesPerValue], &mValueArray[aIndex * mBytesPerValue], (count - aIndex) * mBytesPerValue);
memmove(&mValueArray[(aIndex + 1) * mBytesPerValue], &mValueArray[aIndex * mBytesPerValue], (count - aIndex) * mBytesPerValue);
}
//
@@ -221,7 +221,7 @@ PRBool nsValueArray::RemoveValueAt(nsValueArrayIndex aIndex) {
// Move memory around if appropriate.
//
if (aIndex != (count - 1)) {
nsCRT::memmove(&mValueArray[aIndex * mBytesPerValue], &mValueArray[(aIndex + 1) * mBytesPerValue], (count - aIndex - 1) * mBytesPerValue);
memmove(&mValueArray[aIndex * mBytesPerValue], &mValueArray[(aIndex + 1) * mBytesPerValue], (count - aIndex - 1) * mBytesPerValue);
}
//