diff options
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r-- | libs/binder/Parcel.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 359742c..7a5919f 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -798,13 +798,13 @@ status_t Parcel::writeBlob(size_t len, WritableBlob* outBlob) return status; } -status_t Parcel::write(const Flattenable& val) +status_t Parcel::write(const FlattenableHelperInterface& val) { status_t err; // size if needed - size_t len = val.getFlattenedSize(); - size_t fd_count = val.getFdCount(); + const size_t len = val.getFlattenedSize(); + const size_t fd_count = val.getFdCount(); err = this->writeInt32(len); if (err) return err; @@ -813,7 +813,7 @@ status_t Parcel::write(const Flattenable& val) if (err) return err; // payload - void* buf = this->writeInplace(PAD_SIZE(len)); + void* const buf = this->writeInplace(PAD_SIZE(len)); if (buf == NULL) return BAD_VALUE; @@ -1174,14 +1174,14 @@ status_t Parcel::readBlob(size_t len, ReadableBlob* outBlob) const return NO_ERROR; } -status_t Parcel::read(Flattenable& val) const +status_t Parcel::read(FlattenableHelperInterface& val) const { // size const size_t len = this->readInt32(); const size_t fd_count = this->readInt32(); // payload - void const* buf = this->readInplace(PAD_SIZE(len)); + void const* const buf = this->readInplace(PAD_SIZE(len)); if (buf == NULL) return BAD_VALUE; |