Skip to content

Commit

Permalink
Fix warning: the implicit by-copy capture of "this" is deprecated (ED…
Browse files Browse the repository at this point in the history
…G frontend)

Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus authored and vitaut committed Nov 22, 2022
1 parent 81ebe70 commit 8276f1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/gtest/gmock-gtest-all.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8276f1a

Please sign in to comment.