diff options
| -rw-r--r-- | libs/binder/ndk/include_cpp/android/binder_auto_utils.h | 3 | 
1 files changed, 2 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 18877af32a..8d60226725 100644 --- a/libs/binder/ndk/include_cpp/android/binder_auto_utils.h +++ b/libs/binder/ndk/include_cpp/android/binder_auto_utils.h @@ -313,7 +313,8 @@ class ScopedFileDescriptor : public impl::ScopedAResource<int, int, close, -1> {      /**       * Takes ownership of a.       */ -    explicit ScopedFileDescriptor(int a = -1) : ScopedAResource(a) {} +    ScopedFileDescriptor() : ScopedFileDescriptor(-1) {} +    explicit ScopedFileDescriptor(int a) : ScopedAResource(a) {}      ~ScopedFileDescriptor() {}      ScopedFileDescriptor(ScopedFileDescriptor&&) = default;      ScopedFileDescriptor& operator=(ScopedFileDescriptor&&) = default;  |