diff options
author | 2023-06-09 21:31:26 +0000 | |
---|---|---|
committer | 2023-08-17 21:00:03 +0000 | |
commit | 4cc1a633a629097fe1c30b07bebc64d69c544356 (patch) | |
tree | 817c446a5ebfe2f1299b2ff750f5c4c3324b7906 /libs/input/PointerControllerContext.cpp | |
parent | 49ac12fa801aa7b735662d7c69d4cf459d41615a (diff) |
Strong pointer fixes in libinputservice
Make components of libinputservice work with implicit conversions
disabled for strong pointers.
Bug: 278783893
Test: Build
Change-Id: Ibe1e97c845662113437635efd7a1e875e8407c64
Diffstat (limited to 'libs/input/PointerControllerContext.cpp')
-rw-r--r-- | libs/input/PointerControllerContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/input/PointerControllerContext.cpp b/libs/input/PointerControllerContext.cpp index f30e8d8e33a5..c15451072f54 100644 --- a/libs/input/PointerControllerContext.cpp +++ b/libs/input/PointerControllerContext.cpp @@ -36,8 +36,8 @@ PointerControllerContext::PointerControllerContext( : mPolicy(policy), mLooper(looper), mSpriteController(spriteController), - mHandler(new MessageHandler()), - mCallback(new LooperCallback()), + mHandler(sp<MessageHandler>::make()), + mCallback(sp<LooperCallback>::make()), mController(controller), mAnimator(*this) { std::scoped_lock lock(mLock); |