commit | f27ee621152ad61c77932a3bc1cce3f0df24d94d | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Oct 06 21:01:32 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Oct 06 21:01:32 2020 +0000 |
tree | a34b26043fcee427b135b1e2567829a02868e8d4 | |
parent | 77ebd6e060284fbdf5a80cd908a0df4fc5854d45 [diff] | |
parent | b599a473bb42aff703712a533ae7c26f4ea2f7c8 [diff] |
Merge "libbinder_ndk: Add default constructor for SpAIBinder" am: b599a473bb Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1449267 Change-Id: I145262461cd48631de57c8eeedd96238ff1b0ebd
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