Bug 1336510 - Part 8: Stop capturing this by value in OSX only code, r=schien
☠☠ backed out by 3fee518242f6 ☠ ☠
authorMichael Layzell <michael@thelayzells.com>
Thu, 16 Feb 2017 14:47:41 -0500
changeset 373646 19239f566a9332087f637930f14ee7c2bed086e6
parent 373645 c8aeead6fe83a62d86c15decc9445a089ab2b717
child 373647 419ada2f9e81fdabcd3423381990231bcfb61c0c
push id10863
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 23:02:23 +0000
treeherdermozilla-aurora@0931190cd725 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersschien
bugs1336510
milestone54.0a1
Bug 1336510 - Part 8: Stop capturing this by value in OSX only code, r=schien MozReview-Commit-ID: BHWJMHNgdRu
netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
--- a/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
+++ b/netwerk/dns/mdns/libmdns/MDNSResponderOperator.cpp
@@ -616,17 +616,17 @@ ResolveOperator::Reply(DNSServiceRef aSd
                        const nsACString& aFullName,
                        const nsACString& aHostTarget,
                        uint16_t aPort,
                        uint16_t aTxtLen,
                        const unsigned char* aTxtRecord)
 {
   MOZ_ASSERT(GetThread() == NS_GetCurrentThread());
 
-  auto guard = MakeScopeExit([this] {
+  auto guard = MakeScopeExit([&] {
     Unused << NS_WARN_IF(NS_FAILED(Stop()));
   });
 
   if (NS_WARN_IF(kDNSServiceErr_NoError != aErrorCode)) {
     LOG_E("ResolveOperator::Reply (%d)", aErrorCode);
     return;
   }
 
@@ -735,17 +735,17 @@ GetAddrInfoOperator::Reply(DNSServiceRef
                            uint32_t aInterfaceIndex,
                            DNSServiceErrorType aErrorCode,
                            const nsACString& aHostName,
                            const NetAddr& aAddress,
                            uint32_t aTTL)
 {
   MOZ_ASSERT(GetThread() == NS_GetCurrentThread());
 
-  auto guard = MakeScopeExit([this] {
+  auto guard = MakeScopeExit([&] {
     Unused << NS_WARN_IF(NS_FAILED(Stop()));
   });
 
   if (NS_WARN_IF(kDNSServiceErr_NoError != aErrorCode)) {
     LOG_E("GetAddrInfoOperator::Reply (%d)", aErrorCode);
     return;
   }