summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-10-10 13:39:02 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-10-10 13:39:02 +0000
commit70042117557b036b2c42cd3857cad1ece3d4ac66 (patch)
tree327e564e08c42486207324125b9b0c84a34412b5 /libs
parentb67bfdd86640e909d480db3241b71abd7c7dd336 (diff)
parent08c2ddb3dbe12f1d2b9200d6d6f4bd9d19df2062 (diff)
Merge "ParcelFileDescriptor is movable"
Diffstat (limited to 'libs')
-rw-r--r--libs/binder/include/binder/ParcelFileDescriptor.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/binder/include/binder/ParcelFileDescriptor.h b/libs/binder/include/binder/ParcelFileDescriptor.h
index 455462b18f..ad950affc5 100644
--- a/libs/binder/include/binder/ParcelFileDescriptor.h
+++ b/libs/binder/include/binder/ParcelFileDescriptor.h
@@ -31,6 +31,7 @@ class ParcelFileDescriptor : public android::Parcelable {
public:
ParcelFileDescriptor();
explicit ParcelFileDescriptor(android::base::unique_fd fd);
+ explicit ParcelFileDescriptor(ParcelFileDescriptor&& other) : mFd(std::move(other.mFd)) { }
~ParcelFileDescriptor() override;
int get() const { return mFd.get(); }