mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Bug 819791 - Part 5: Remove an unnecessary TArray copy in hal/sandbox. r=mounir
This commit is contained in:
parent
c32ab06a51
commit
cd3ff297ee
@ -437,8 +437,7 @@ public:
|
||||
nsCOMPtr<nsIDOMWindow> window =
|
||||
do_QueryInterface(tabParent->GetBrowserDOMWindow());
|
||||
WindowIdentifier newID(id, window);
|
||||
// Have to copy, because Vibrate doesn't take a compatible array type
|
||||
hal::Vibrate(nsTArray<uint32_t>(pattern), newID);
|
||||
hal::Vibrate(pattern, newID);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user