Bug 1194259: warnings-as-errors bustage fix rs=bustage

on a CLOSED TREE
This commit is contained in:
Randell Jesup 2016-01-22 03:56:04 -05:00
parent 76c964b161
commit 793d105497
2 changed files with 9 additions and 1 deletions

View File

@ -292,13 +292,20 @@ UDPSocketParent::RecvConnect(const UDPAddressInfo& aAddressInfo)
return true;
}
void
UDPSocketParent::DoSendConnectResponse(const UDPAddressInfo& aAddressInfo)
{
// can't use directly with WrapRunnable due to warnings
mozilla::Unused << SendCallbackConnected(aAddressInfo);
}
void
UDPSocketParent::SendConnectResponse(nsIEventTarget *aThread,
const UDPAddressInfo& aAddressInfo)
{
NS_WARN_IF(NS_FAILED(aThread->Dispatch(WrapRunnable(
this,
&UDPSocketParent::SendCallbackConnected,
&UDPSocketParent::DoSendConnectResponse,
aAddressInfo),
NS_DISPATCH_NORMAL)));
}

View File

@ -37,6 +37,7 @@ public:
virtual bool RecvBind(const UDPAddressInfo& aAddressInfo,
const bool& aAddressReuse, const bool& aLoopback) override;
virtual bool RecvConnect(const UDPAddressInfo& aAddressInfo) override;
void DoSendConnectResponse(const UDPAddressInfo& aAddressInfo);
void SendConnectResponse(nsIEventTarget *aThread,
const UDPAddressInfo& aAddressInfo);
void DoConnect(nsCOMPtr<nsIUDPSocket>& aSocket,