diff options
author | 2025-02-05 09:18:03 -0800 | |
---|---|---|
committer | 2025-02-05 09:18:03 -0800 | |
commit | ea332b76641fcba3bdf457c255235f8c6746b623 (patch) | |
tree | 6ab2cd88245e300252500eeca91d1f7a1f9888a3 /libs | |
parent | 3f11c43ff58e1447a29ee07990eca9d699885dd0 (diff) | |
parent | 4f8ce35334b11668e0d399c0c3f91b3c75c46183 (diff) |
Merge changes from topic "refbase-lar" into main
* changes:
opengl stubs: update for no implicit sp
libgui InputTransferToken: avoid implicit sp<>
Diffstat (limited to 'libs')
-rw-r--r-- | libs/gui/include/gui/InputTransferToken.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/gui/include/gui/InputTransferToken.h b/libs/gui/include/gui/InputTransferToken.h index 6530b5069a..fb4aaa73ae 100644 --- a/libs/gui/include/gui/InputTransferToken.h +++ b/libs/gui/include/gui/InputTransferToken.h @@ -25,7 +25,7 @@ namespace android { struct InputTransferToken : public RefBase, Parcelable { public: - InputTransferToken() { mToken = new BBinder(); } + InputTransferToken() { mToken = sp<BBinder>::make(); } InputTransferToken(const sp<IBinder>& token) { mToken = token; } @@ -50,4 +50,4 @@ static inline bool operator==(const sp<InputTransferToken>& token1, return token1->mToken == token2->mToken; } -} // namespace android
\ No newline at end of file +} // namespace android |