diff options
author | Elliott Hughes <enh@google.com> | 2024-01-30 11:18:51 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2024-01-30 11:18:51 -0800 |
commit | 080046586dcce7bfdb569fc50eae4a46fca2c850 (patch) | |
tree | 028e41b8449e76d3461fe3887d286e41d65161d1 | |
parent | ffdc5e45730fd184a1ffbbe9b1b987bac1115bce (diff) | |
download | native-080046586dcce7bfdb569fc50eae4a46fca2c850.tar.gz |
Fix C++ deprecation warning.
Implicit "this" capture now needs to be explicit.
Test: treehugger
Change-Id: Ie76309d537beafd2e963ae65c75b5c5bb94c2494
-rw-r--r-- | libs/gui/Choreographer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/Choreographer.cpp b/libs/gui/Choreographer.cpp index 46fb068dee..a52f68ea32 100644 --- a/libs/gui/Choreographer.cpp +++ b/libs/gui/Choreographer.cpp @@ -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. @@ -394,4 +394,4 @@ int64_t Choreographer::getStartTimeNanosForVsyncId(AVsyncId vsyncId) { return iter->second; } -} // namespace android
\ No newline at end of file +} // namespace android |