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:
@@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user