Skip to content

Commit 3741f95

Browse files
author
Steven Moreland
committed
libgui InputTransferToken: avoid implicit sp<>
Required to enable ANDROID_UTILS_REF_BASE_DISABLE_IMPLICIT_CONSTRUCTION, used elsewhere. Bug: 393217449 Bug: 393013610 Test: boot Change-Id: I9d49c0e347aed41851f398a454ae0bf2b18ba308
1 parent a5f7d9f commit 3741f95

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libs/gui/include/gui/InputTransferToken.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
namespace android {
2626
struct InputTransferToken : public RefBase, Parcelable {
2727
public:
28-
InputTransferToken() { mToken = new BBinder(); }
28+
InputTransferToken() { mToken = sp<BBinder>::make(); }
2929

3030
InputTransferToken(const sp<IBinder>& token) { mToken = token; }
3131

@@ -50,4 +50,4 @@ static inline bool operator==(const sp<InputTransferToken>& token1,
5050
return token1->mToken == token2->mToken;
5151
}
5252

53-
} // namespace android
53+
} // namespace android

0 commit comments

Comments
 (0)