diff options
| author | 2020-10-06 20:23:04 +0000 | |
|---|---|---|
| committer | 2020-10-06 20:23:04 +0000 | |
| commit | b599a473bb42aff703712a533ae7c26f4ea2f7c8 (patch) | |
| tree | a34b26043fcee427b135b1e2567829a02868e8d4 | |
| parent | 7dbc3c92f2e1d5e17fc776f81a7aea5ba81d41d2 (diff) | |
| parent | 33983b12a8d9103eedf27d8f2b28486bcdcdfa75 (diff) | |
Merge "libbinder_ndk: Add default constructor for SpAIBinder"
| -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 |