diff options
Diffstat (limited to 'include/binder/Parcel.h')
| -rw-r--r-- | include/binder/Parcel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/binder/Parcel.h b/include/binder/Parcel.h index 2685bcc807..1c355c4689 100644 --- a/include/binder/Parcel.h +++ b/include/binder/Parcel.h @@ -705,9 +705,9 @@ status_t Parcel::readParcelableVector(std::unique_ptr<std::vector<std::unique_pt } setDataPosition(start); - val->reset(new std::vector<T>()); + val->reset(new std::vector<std::unique_ptr<T>>()); - status = unsafeReadTypedVector(val->get(), &Parcel::readParcelable); + status = unsafeReadTypedVector(val->get(), &Parcel::readParcelable<T>); if (status != OK) { val->reset(); |