Bug 819791 - Part 5: Remove an unnecessary TArray copy in hal/sandbox. r=mounir

This commit is contained in:
Justin Lebar 2012-12-18 20:16:06 -05:00
Родитель c32ab06a51
Коммит cd3ff297ee
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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;
}