From cd3ff297ee35f4ff039aad004d2b084851ff1a84 Mon Sep 17 00:00:00 2001 From: Justin Lebar Date: Tue, 18 Dec 2012 20:16:06 -0500 Subject: [PATCH] Bug 819791 - Part 5: Remove an unnecessary TArray copy in hal/sandbox. r=mounir --- hal/sandbox/SandboxHal.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hal/sandbox/SandboxHal.cpp b/hal/sandbox/SandboxHal.cpp index b3e0e1d95a26..3e8394389dd0 100644 --- a/hal/sandbox/SandboxHal.cpp +++ b/hal/sandbox/SandboxHal.cpp @@ -437,8 +437,7 @@ public: nsCOMPtr window = do_QueryInterface(tabParent->GetBrowserDOMWindow()); WindowIdentifier newID(id, window); - // Have to copy, because Vibrate doesn't take a compatible array type - hal::Vibrate(nsTArray(pattern), newID); + hal::Vibrate(pattern, newID); return true; }