From da289eeb400a74061b0d6d4162b1267b122df76f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 8 Jun 2018 15:07:19 +0200 Subject: [PATCH] Bug 1467536: followup: Use a more specific capture for the lambda. r=xidorn MozReview-Commit-ID: 8ykWCzCO0yw --- layout/style/nsComputedDOMStyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp index 11c93732b692..e019c9fda691 100644 --- a/layout/style/nsComputedDOMStyle.cpp +++ b/layout/style/nsComputedDOMStyle.cpp @@ -452,7 +452,7 @@ nsComputedDOMStyle::GetPropertyValue(const nsAString& aPropertyName, return NS_ERROR_NOT_AVAILABLE; } - auto cleanup = mozilla::MakeScopeExit([&] { + auto cleanup = mozilla::MakeScopeExit([this] { ClearCurrentStyleSources(); });