Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 870725d6 authored by Aditya Kumar's avatar Aditya Kumar
Browse files

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
parent cf5a4f18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ namespace skia {

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