Bug 947096 - [Flatfish] Build break results from variable access that requires MOZ_B2G_RIL flag, r=echou
authorBen Tian <btian@mozilla.com>
Fri, 06 Dec 2013 15:17:24 +0800
changeset 159191 0ae69adce1285f044e1d6475c710142bc8d6103c
parent 159190 0f2650f8c995ebcc116d42b40157159365d8ce0c
child 159192 d3b6e31570fbd262e17f0880dd28e0712f7857ce
push idunknown
push userunknown
push dateunknown
reviewersechou
bugs947096
milestone28.0a1
Bug 947096 - [Flatfish] Build break results from variable access that requires MOZ_B2G_RIL flag, r=echou
dom/bluetooth/bluez/BluetoothHfpManager.cpp
--- a/dom/bluetooth/bluez/BluetoothHfpManager.cpp
+++ b/dom/bluetooth/bluez/BluetoothHfpManager.cpp
@@ -336,19 +336,22 @@ Call::IsActive()
 {
   return (mState == nsITelephonyProvider::CALL_STATE_CONNECTED);
 }
 #endif // MOZ_B2G_RIL
 
 /**
  *  BluetoothHfpManager
  */
-BluetoothHfpManager::BluetoothHfpManager() : mPhoneType(PhoneType::NONE)
-                                           , mController(nullptr)
+BluetoothHfpManager::BluetoothHfpManager() : mController(nullptr)
 {
+#ifdef MOZ_B2G_RIL
+  mPhoneType = PhoneType::NONE;
+#endif // MOZ_B2G_RIL
+
   Reset();
 }
 
 #ifdef MOZ_B2G_RIL
 void
 BluetoothHfpManager::ResetCallArray()
 {
   mCurrentCallArray.Clear();