diff options
| -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 |