Bug 819791 - Part 6: Remove unnecessary TArray copies in dom/indexedDB. r=bent

This commit is contained in:
Justin Lebar 2012-12-18 20:16:06 -05:00
parent b96798e203
commit 177343bcf8
2 changed files with 2 additions and 2 deletions

View File

@ -1668,7 +1668,7 @@ GetAllHelper::UnpackResponseFromParentProcess(
for (uint32_t index = 0; index < cloneInfos.Length(); index++) {
const SerializedStructuredCloneReadInfo srcInfo = cloneInfos[index];
const InfallibleTArray<PBlobChild*> blobs = blobArrays[index].blobsChild();
const InfallibleTArray<PBlobChild*>& blobs = blobArrays[index].blobsChild();
StructuredCloneReadInfo* destInfo = mCloneReadInfos.AppendElement();
if (!destInfo->SetFromSerialized(srcInfo)) {

View File

@ -3907,7 +3907,7 @@ GetAllHelper::UnpackResponseFromParentProcess(
for (uint32_t index = 0; index < cloneInfos.Length(); index++) {
const SerializedStructuredCloneReadInfo srcInfo = cloneInfos[index];
const InfallibleTArray<PBlobChild*> blobs = blobArrays[index].blobsChild();
const InfallibleTArray<PBlobChild*>& blobs = blobArrays[index].blobsChild();
StructuredCloneReadInfo* destInfo = mCloneReadInfos.AppendElement();
if (!destInfo->SetFromSerialized(srcInfo)) {