Bug 1095332 - B2G RIL: Fix false alarms "WARNING: 'jsapi.Init(mWindow)'...". r=echen

This commit is contained in:
Jessica Jong 2014-11-06 23:56:00 -05:00
parent 0f76ed079f
commit 4cf52c12c4
3 changed files with 13 additions and 13 deletions

View File

@ -38,7 +38,7 @@ nsresult
MobileConnectionCallback::NotifySendCancelMmiSuccess(const MozMMIResult& aResult)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -77,7 +77,7 @@ NS_IMETHODIMP
MobileConnectionCallback::NotifySuccessWithString(const nsAString& aResult)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -112,7 +112,7 @@ MobileConnectionCallback::NotifyGetNetworksSuccess(uint32_t aCount,
}
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -158,7 +158,7 @@ MobileConnectionCallback::NotifySendCancelMmiSuccessWithStrings(const nsAString&
const char16_t** aAdditionalInformation)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -193,7 +193,7 @@ MobileConnectionCallback::NotifySendCancelMmiSuccessWithCallForwardingOptions(
nsIMobileCallForwardingOptions** aResults)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -294,7 +294,7 @@ MobileConnectionCallback::NotifyGetCallForwardingSuccess(uint32_t aCount,
}
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -320,7 +320,7 @@ MobileConnectionCallback::NotifyGetCallBarringSuccess(uint16_t aProgram,
result.mServiceClass.Construct().SetValue(aServiceClass);
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -342,7 +342,7 @@ MobileConnectionCallback::NotifyGetClirStatusSuccess(uint16_t aN, uint16_t aM)
result.mM.Construct(aM);
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}

View File

@ -247,7 +247,7 @@ MobileMessageManager::SendMMS(const MmsParameters& aParams,
}
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(GetOwner()))) {
if (NS_WARN_IF(!jsapi.Init(GetOwner()))) {
aRv.Throw(NS_ERROR_FAILURE);
return nullptr;
}

View File

@ -78,7 +78,7 @@ NS_IMETHODIMP
TelephonyDialCallback::NotifyDialMMISuccess(const nsAString& aStatusMessage)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -96,7 +96,7 @@ TelephonyDialCallback::NotifyDialMMISuccessWithInteger(const nsAString& aStatusM
uint16_t aAdditionalInformation)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -116,7 +116,7 @@ TelephonyDialCallback::NotifyDialMMISuccessWithStrings(const nsAString& aStatusM
const char16_t** aAdditionalInformation)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}
@ -149,7 +149,7 @@ TelephonyDialCallback::NotifyDialMMISuccessWithCallForwardingOptions(const nsASt
nsIMobileCallForwardingOptions** aResults)
{
AutoJSAPI jsapi;
if (!NS_WARN_IF(jsapi.Init(mWindow))) {
if (NS_WARN_IF(!jsapi.Init(mWindow))) {
return NS_ERROR_FAILURE;
}