diff --git a/dom/bluetooth2/BluetoothAdapter.cpp b/dom/bluetooth2/BluetoothAdapter.cpp index f094473aa3f3..929a2dc80007 100644 --- a/dom/bluetooth2/BluetoothAdapter.cpp +++ b/dom/bluetooth2/BluetoothAdapter.cpp @@ -103,7 +103,7 @@ public: } AutoPushJSContext cx(sc->GetNativeContext()); - JSObject* JsDevices = nullptr; + JS::Rooted JsDevices(cx); rv = nsTArrayToJSArray(cx, devices, &JsDevices); if (!JsDevices) { BT_WARNING("Cannot create JS array!"); @@ -260,7 +260,7 @@ BluetoothAdapter::SetPropertyByValue(const BluetoothNamedValue& aValue) AutoPushJSContext cx(sc->GetNativeContext()); JS::Rooted uuids(cx); - if (NS_FAILED(nsTArrayToJSArray(cx, mUuids, uuids.address()))) { + if (NS_FAILED(nsTArrayToJSArray(cx, mUuids, &uuids))) { BT_WARNING("Cannot set JS UUIDs object!"); return; } @@ -276,8 +276,7 @@ BluetoothAdapter::SetPropertyByValue(const BluetoothNamedValue& aValue) AutoPushJSContext cx(sc->GetNativeContext()); JS::Rooted deviceAddresses(cx); - if (NS_FAILED(nsTArrayToJSArray(cx, mDeviceAddresses, - deviceAddresses.address()))) { + if (NS_FAILED(nsTArrayToJSArray(cx, mDeviceAddresses, &deviceAddresses))) { BT_WARNING("Cannot set JS Devices object!"); return; } diff --git a/dom/bluetooth2/BluetoothDevice.cpp b/dom/bluetooth2/BluetoothDevice.cpp index a666f0ee22e5..c33aec40db08 100644 --- a/dom/bluetooth2/BluetoothDevice.cpp +++ b/dom/bluetooth2/BluetoothDevice.cpp @@ -137,7 +137,7 @@ BluetoothDevice::SetPropertyByValue(const BluetoothNamedValue& aValue) AutoPushJSContext cx(sc->GetNativeContext()); JS::Rooted uuids(cx); - if (NS_FAILED(nsTArrayToJSArray(cx, mUuids, uuids.address()))) { + if (NS_FAILED(nsTArrayToJSArray(cx, mUuids, &uuids))) { BT_WARNING("Cannot set JS UUIDs object!"); return; } @@ -153,7 +153,7 @@ BluetoothDevice::SetPropertyByValue(const BluetoothNamedValue& aValue) AutoPushJSContext cx(sc->GetNativeContext()); JS::Rooted services(cx); - if (NS_FAILED(nsTArrayToJSArray(cx, mServices, services.address()))) { + if (NS_FAILED(nsTArrayToJSArray(cx, mServices, &services))) { BT_WARNING("Cannot set JS Services object!"); return; } diff --git a/dom/bluetooth2/BluetoothRilListener.cpp b/dom/bluetooth2/BluetoothRilListener.cpp index a4f554df7161..8d3cdc09d564 100644 --- a/dom/bluetooth2/BluetoothRilListener.cpp +++ b/dom/bluetooth2/BluetoothRilListener.cpp @@ -181,7 +181,6 @@ TelephonyListener::CallStateChanged(uint32_t aServiceId, uint32_t aCallIndex, uint16_t aCallState, const nsAString& aNumber, - bool aIsActive, bool aIsOutgoing, bool aIsEmergency, bool aIsConference, @@ -201,7 +200,6 @@ TelephonyListener::EnumerateCallState(uint32_t aServiceId, uint32_t aCallIndex, uint16_t aCallState, const nsAString_internal& aNumber, - bool aIsActive, bool aIsOutgoing, bool aIsEmergency, bool aIsConference,