From 65d984ff6fa8d46ee56ccbf0d73f089b1e4db888 Mon Sep 17 00:00:00 2001 From: Botond Ballo Date: Wed, 18 Nov 2015 13:48:12 -0500 Subject: [PATCH] Bug 1221371 - Remove unnecessary explicit copies of nsTArray. r=billm --HG-- extra : source : e3ade121fe3a26db1e65cd6b91de29dfe8cc5a61 extra : intermediate-source : a09da6e0b017448d6e2b85eb4a6c08dba51999c7 --- layout/ipc/RenderFrameParent.cpp | 4 ++-- widget/nsBaseWidget.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layout/ipc/RenderFrameParent.cpp b/layout/ipc/RenderFrameParent.cpp index fbc03ee85cb0..a5d59926d6c2 100644 --- a/layout/ipc/RenderFrameParent.cpp +++ b/layout/ipc/RenderFrameParent.cpp @@ -548,7 +548,7 @@ RenderFrameParent::SetTargetAPZC(uint64_t aInputBlockId, = &APZCTreeManager::SetTargetAPZC; APZThreadUtils::RunOnControllerThread(NewRunnableMethod( GetApzcTreeManager(), setTargetApzcFunc, - aInputBlockId, nsTArray(aTargets))); + aInputBlockId, aTargets)); } } @@ -559,7 +559,7 @@ RenderFrameParent::SetAllowedTouchBehavior(uint64_t aInputBlockId, if (GetApzcTreeManager()) { APZThreadUtils::RunOnControllerThread(NewRunnableMethod( GetApzcTreeManager(), &APZCTreeManager::SetAllowedTouchBehavior, - aInputBlockId, nsTArray(aFlags))); + aInputBlockId, aFlags)); } } diff --git a/widget/nsBaseWidget.cpp b/widget/nsBaseWidget.cpp index 7311d4cc6dcb..31b40108403c 100644 --- a/widget/nsBaseWidget.cpp +++ b/widget/nsBaseWidget.cpp @@ -908,7 +908,7 @@ void nsBaseWidget::ConfigureAPZCTreeManager() MOZ_ASSERT(NS_IsMainThread()); APZThreadUtils::RunOnControllerThread(NewRunnableMethod( treeManager.get(), &APZCTreeManager::SetAllowedTouchBehavior, - aInputBlockId, nsTArray(aFlags))); + aInputBlockId, aFlags)); }; RefPtr controller = CreateRootContentController(); @@ -940,7 +940,7 @@ nsBaseWidget::SetConfirmedTargetAPZC(uint64_t aInputBlockId, void (APZCTreeManager::*setTargetApzcFunc)(uint64_t, const nsTArray&) = &APZCTreeManager::SetTargetAPZC; APZThreadUtils::RunOnControllerThread(NewRunnableMethod( - mAPZC.get(), setTargetApzcFunc, aInputBlockId, nsTArray(aTargets))); + mAPZC.get(), setTargetApzcFunc, aInputBlockId, aTargets)); } void