Skip to content

Commit 870725d

Browse files
committed
Implicit capture of 'this' with a capture default of '=' is deprecated
``` CaptureTimer.cpp:34:13: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture] ``` Change-Id: Ib3fe4e958964b15b6135f8d73b093493d36fc8b1
1 parent cf5a4f1 commit 870725d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libs/renderengine/skia/debug/CaptureTimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace skia {
3030

3131
void CaptureTimer::setTimeout(TimeoutCallback function, std::chrono::milliseconds delay) {
3232
this->clear = false;
33-
CommonPool::post([=]() {
33+
CommonPool::post([=,this]() {
3434
if (this->clear) return;
3535
std::this_thread::sleep_for(delay);
3636
if (this->clear) return;

0 commit comments

Comments
 (0)