зеркало из https://github.com/mozilla/gecko-dev.git
Bug 819791 - Part 5: Remove an unnecessary TArray copy in hal/sandbox. r=mounir
This commit is contained in:
Родитель
c32ab06a51
Коммит
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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче