diff --git a/content/base/src/nsDOMBlobBuilder.h b/content/base/src/nsDOMBlobBuilder.h index d60582597373..4d1bd6fdfb39 100644 --- a/content/base/src/nsDOMBlobBuilder.h +++ b/content/base/src/nsDOMBlobBuilder.h @@ -25,7 +25,7 @@ public: } // Create as a blob - nsDOMMultipartFile(nsTArray > aBlobs, + nsDOMMultipartFile(nsTArray >& aBlobs, const nsAString& aContentType) : nsDOMFile(aContentType, UINT64_MAX), mBlobs(aBlobs) diff --git a/content/events/src/nsDOMTouchEvent.cpp b/content/events/src/nsDOMTouchEvent.cpp index e0e533c108e5..4175dcb5acd5 100644 --- a/content/events/src/nsDOMTouchEvent.cpp +++ b/content/events/src/nsDOMTouchEvent.cpp @@ -288,7 +288,7 @@ nsDOMTouchEvent::GetTouches(nsIDOMTouchList** aTouches) if (mEvent->message == NS_TOUCH_END || mEvent->message == NS_TOUCH_CANCEL) { // for touchend events, remove any changed touches from the touches array nsTArray > unchangedTouches; - nsTArray > touches = touchEvent->touches; + const nsTArray >& touches = touchEvent->touches; for (uint32_t i = 0; i < touches.Length(); ++i) { if (!touches[i]->mChanged) { unchangedTouches.AppendElement(touches[i]); @@ -314,7 +314,7 @@ nsDOMTouchEvent::GetTargetTouches(nsIDOMTouchList** aTargetTouches) nsTArray > targetTouches; nsTouchEvent* touchEvent = static_cast(mEvent); - nsTArray > touches = touchEvent->touches; + const nsTArray >& touches = touchEvent->touches; for (uint32_t i = 0; i < touches.Length(); ++i) { // for touchend/cancel events, don't append to the target list if this is a // touch that is ending @@ -342,7 +342,7 @@ nsDOMTouchEvent::GetChangedTouches(nsIDOMTouchList** aChangedTouches) nsTArray > changedTouches; nsTouchEvent* touchEvent = static_cast(mEvent); - nsTArray > touches = touchEvent->touches; + const nsTArray >& touches = touchEvent->touches; for (uint32_t i = 0; i < touches.Length(); ++i) { if (touches[i]->mChanged) { changedTouches.AppendElement(touches[i]); diff --git a/content/html/content/src/nsHTMLFormElement.cpp b/content/html/content/src/nsHTMLFormElement.cpp index 66ed7e08a01f..36c8b4a2d5b2 100644 --- a/content/html/content/src/nsHTMLFormElement.cpp +++ b/content/html/content/src/nsHTMLFormElement.cpp @@ -452,7 +452,7 @@ nsHTMLFormElement::BindToTree(nsIDocument* aDocument, nsIContent* aParent, } static void -MarkOrphans(const nsTArray aArray) +MarkOrphans(const nsTArray& aArray) { uint32_t length = aArray.Length(); for (uint32_t i = 0; i < length; ++i) { @@ -461,7 +461,8 @@ MarkOrphans(const nsTArray aArray) } static void -CollectOrphans(nsINode* aRemovalRoot, nsTArray aArray +CollectOrphans(nsINode* aRemovalRoot, + const nsTArray& aArray #ifdef DEBUG , nsIDOMHTMLFormElement* aThisForm #endif