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

Commit 08004658 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Fix C++ deprecation warning.

Implicit "this" capture now needs to be explicit.

Test: treehugger
Change-Id: Ie76309d537beafd2e963ae65c75b5c5bb94c2494
parent ffdc5e45
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ Choreographer::~Choreographer() {
    std::lock_guard<std::mutex> _l(gChoreographers.lock);
    gChoreographers.ptrs.erase(std::remove_if(gChoreographers.ptrs.begin(),
                                              gChoreographers.ptrs.end(),
                                              [=](Choreographer* c) { return c == this; }),
                                              [=, this](Choreographer* c) { return c == this; }),
                               gChoreographers.ptrs.end());
    // Only poke DisplayManagerGlobal to unregister if we previously registered
    // callbacks.