diff options
| author | 2020-10-06 21:45:39 +0000 | |
|---|---|---|
| committer | 2020-10-06 21:45:39 +0000 | |
| commit | 451f45e478583cb11f8e681d19a2af4859ac738d (patch) | |
| tree | ec27fd12a76075057551c305892b6fdbba7677ec | |
| parent | 87a2c4a69580bfe9327c819878ff8bed23c7ff69 (diff) | |
| parent | f27ee621152ad61c77932a3bc1cce3f0df24d94d (diff) | |
Merge "libbinder_ndk: Add default constructor for SpAIBinder" am: b599a473bb am: f27ee62115
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1449267
Change-Id: I92211714078723b383d4fb6e97fe9872fd1875da
| -rw-r--r-- | libs/binder/ndk/include_cpp/android/binder_auto_utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 439b019665..18877af32a 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 @@ 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 |