diff options
author | Elliott Hughes <enh@google.com> | 2024-02-02 00:04:59 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-02-02 00:04:59 +0000 |
commit | 77f3da22f3bf363c6dbc63c50c898a12f8f1df78 (patch) | |
tree | 0028fcd03a509328db6182d633197503ff3811fb | |
parent | cb59ad9732e2e0b5edcf95a86c968e81cbe9a7a7 (diff) | |
parent | 080046586dcce7bfdb569fc50eae4a46fca2c850 (diff) | |
download | native-77f3da22f3bf363c6dbc63c50c898a12f8f1df78.tar.gz |
Merge "Fix C++ deprecation warning." into main
-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 |