зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336510 - Part 8: Stop capturing this by value in OSX only code, r=schien
MozReview-Commit-ID: BHWJMHNgdRu
This commit is contained in:
Родитель
ac9295ead2
Коммит
59878e7979
|
@ -621,7 +621,7 @@ ResolveOperator::Reply(DNSServiceRef aSdRef,
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(GetThread() == NS_GetCurrentThread());
|
MOZ_ASSERT(GetThread() == NS_GetCurrentThread());
|
||||||
|
|
||||||
auto guard = MakeScopeExit([this] {
|
auto guard = MakeScopeExit([&] {
|
||||||
Unused << NS_WARN_IF(NS_FAILED(Stop()));
|
Unused << NS_WARN_IF(NS_FAILED(Stop()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -740,7 +740,7 @@ GetAddrInfoOperator::Reply(DNSServiceRef aSdRef,
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(GetThread() == NS_GetCurrentThread());
|
MOZ_ASSERT(GetThread() == NS_GetCurrentThread());
|
||||||
|
|
||||||
auto guard = MakeScopeExit([this] {
|
auto guard = MakeScopeExit([&] {
|
||||||
Unused << NS_WARN_IF(NS_FAILED(Stop()));
|
Unused << NS_WARN_IF(NS_FAILED(Stop()));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче