From 8276f1a204fd3fcc4d8d11ca6f4435570dc12126 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sat, 19 Nov 2022 16:38:41 +0500 Subject: [PATCH] Fix warning: the implicit by-copy capture of "this" is deprecated (EDG frontend) Signed-off-by: Vladislav Shchapov --- test/gtest/gmock-gtest-all.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/gtest/gmock-gtest-all.cc b/test/gtest/gmock-gtest-all.cc index 439ebc62..7b33134f 100644 --- a/test/gtest/gmock-gtest-all.cc +++ b/test/gtest/gmock-gtest-all.cc @@ -13778,7 +13778,7 @@ UntypedActionResultHolderBase* UntypedFunctionMockerBase::UntypedInvokeWith( UntypedActionResultHolderBase* result = nullptr; - auto perform_action = [&] { + auto perform_action = [&, this] { return untyped_action == nullptr ? this->UntypedPerformDefaultAction(untyped_args, ss.str()) : this->UntypedPerformAction(untyped_action, untyped_args);