Bug 1036233 - Initialize the data member of BluetoothDevice. r=btian
authorJamin Liu <jaliu@mozilla.com>
Tue, 12 Aug 2014 16:30:26 +0800
changeset 213353 3e159fb268c000d7de524fa4a7877167dada89b8
parent 213352 8625cd334522fa64aa6363077c24fec989704c15
child 213354 a31cf9931d59963cabcd640e40698ecfe8711986
push id6741
push userraliiev@mozilla.com
push dateTue, 02 Sep 2014 16:57:58 +0000
treeherdermozilla-aurora@aed50d3edf33 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbtian
bugs1036233
milestone34.0a1
Bug 1036233 - Initialize the data member of BluetoothDevice. r=btian
dom/bluetooth2/BluetoothDevice.cpp
--- a/dom/bluetooth2/BluetoothDevice.cpp
+++ b/dom/bluetooth2/BluetoothDevice.cpp
@@ -69,16 +69,17 @@ public:
 
 private:
   nsRefPtr<BluetoothDevice> mDevice;
 };
 
 BluetoothDevice::BluetoothDevice(nsPIDOMWindow* aWindow,
                                  const BluetoothValue& aValue)
   : DOMEventTargetHelper(aWindow)
+  , mPaired(false)
 {
   MOZ_ASSERT(aWindow);
   MOZ_ASSERT(IsDOMBinding());
 
   mCod = BluetoothClassOfDevice::Create(aWindow);
 
   const InfallibleTArray<BluetoothNamedValue>& values =
     aValue.get_ArrayOfBluetoothNamedValue();