Skip to content

Commit 0d52387

Browse files
dutkalexkris-jusiak
authored andcommitted
Silence -Wdeprecated-this-capture warning
1 parent bc6a5b2 commit 0d52387

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/GUnit/GMock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ class GMock {
305305

306306
template <class TName, class R, class... TArgs>
307307
void original_defer_call(TArgs... args) {
308-
calls.push_back([=] { original_call<TName, R>(args...); });
308+
calls.push_back([=, this] { original_call<TName, R>(args...); });
309309
}
310310

311311
public:

0 commit comments

Comments
 (0)