Skip to content

Commit 77f3da2

Browse files
enh-googleGerrit Code Review
authored andcommitted
Merge "Fix C++ deprecation warning." into main
2 parents cb59ad9 + 0800465 commit 77f3da2

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)