Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c881cb53 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder_ndk: Add default constructor for SpAIBinder" am: b599a473...

Merge "libbinder_ndk: Add default constructor for SpAIBinder" am: b599a473 am: f27ee621 am: 451f45e4 am: 4942d959

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1449267

Change-Id: Ic80e543a7e2c9c002dc992dc6edc6bcb6ae359c0
parents b467d487 4942d959
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -43,10 +43,15 @@ namespace ndk {
 */
class SpAIBinder {
   public:
    /**
     * Default constructor.
     */
    SpAIBinder() : mBinder(nullptr) {}

    /**
     * Takes ownership of one strong refcount of binder.
     */
    explicit SpAIBinder(AIBinder* binder = nullptr) : mBinder(binder) {}
    explicit SpAIBinder(AIBinder* binder) : mBinder(binder) {}

    /**
     * Convenience operator for implicitly constructing an SpAIBinder from nullptr. This is not