Skip to content

Commit 0800465

Browse files
committed
Fix C++ deprecation warning.
Implicit "this" capture now needs to be explicit. Test: treehugger Change-Id: Ie76309d537beafd2e963ae65c75b5c5bb94c2494
1 parent ffdc5e4 commit 0800465

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/gui/Choreographer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Choreographer::~Choreographer() {
116116
std::lock_guard<std::mutex> _l(gChoreographers.lock);
117117
gChoreographers.ptrs.erase(std::remove_if(gChoreographers.ptrs.begin(),
118118
gChoreographers.ptrs.end(),
119-
[=](Choreographer* c) { return c == this; }),
119+
[=, this](Choreographer* c) { return c == this; }),
120120
gChoreographers.ptrs.end());
121121
// Only poke DisplayManagerGlobal to unregister if we previously registered
122122
// callbacks.
@@ -394,4 +394,4 @@ int64_t Choreographer::getStartTimeNanosForVsyncId(AVsyncId vsyncId) {
394394
return iter->second;
395395
}
396396

397-
} // namespace android
397+
} // namespace android

0 commit comments

Comments
 (0)