commit | c881cb53f6166aca0de112ee7f432d9b2cdd403e | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Oct 06 23:19:48 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Oct 06 23:19:48 2020 +0000 |
tree | 692e19a03ecf3d850f2616dd2d75e5590f4c4544 | |
parent | b467d4870df3934a0daa24f1c15f4338495a65dd [diff] | |
parent | 4942d959b4d4570867ab0cfb81ab53afe8adefc8 [diff] |
Merge "libbinder_ndk: Add default constructor for SpAIBinder" am: b599a473bb am: f27ee62115 am: 451f45e478 am: 4942d959b4 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1449267 Change-Id: Ic80e543a7e2c9c002dc992dc6edc6bcb6ae359c0
diff --git a/libs/binder/ndk/include_cpp/android/binder_auto_utils.h b/libs/binder/ndk/include_cpp/android/binder_auto_utils.h index 439b019..18877af 100644 --- a/libs/binder/ndk/include_cpp/android/binder_auto_utils.h +++ b/libs/binder/ndk/include_cpp/android/binder_auto_utils.h
@@ -44,9 +44,14 @@ 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