commit | 4942d959b4d4570867ab0cfb81ab53afe8adefc8 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Oct 06 22:13:35 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Oct 06 22:13:35 2020 +0000 |
tree | 688c4b6314c6e39380dd420ba4f9833a45090e82 | |
parent | 4abf67715472b3b61f0aded4af2bfe2fcaa1d162 [diff] | |
parent | 451f45e478583cb11f8e681d19a2af4859ac738d [diff] |
Merge "libbinder_ndk: Add default constructor for SpAIBinder" am: b599a473bb am: f27ee62115 am: 451f45e478 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1449267 Change-Id: Ib5416f8d2425a4ab8a1180e2bf0d6ec56eb15bea
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