diff options
author | 2024-09-30 23:30:28 +0000 | |
---|---|---|
committer | 2024-09-30 23:30:28 +0000 | |
commit | e96c2b445028f433e662ca47e075ce9ee2a9fb05 (patch) | |
tree | 70221eb3a867735eeb125d2b9b6430833a8e3aa9 | |
parent | bad4c6e29ab67c68c89d972a07950f1068974626 (diff) |
libbinder Parcel: compareData const.
This API should probably be removed because it's a derivative API,
but it also does not modify the Parcel, so quick fix.
Bugs: me
Test: build
Change-Id: I4732360f8cbd53491520dd2cb028c13279995dab
-rw-r--r-- | libs/binder/Parcel.cpp | 2 | ||||
-rw-r--r-- | libs/binder/include/binder/Parcel.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/binder/Parcel.cpp b/libs/binder/Parcel.cpp index 4b7af45739..37113629a8 100644 --- a/libs/binder/Parcel.cpp +++ b/libs/binder/Parcel.cpp @@ -683,7 +683,7 @@ status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) { return err; } -int Parcel::compareData(const Parcel& other) { +int Parcel::compareData(const Parcel& other) const { size_t size = dataSize(); if (size != other.dataSize()) { return size < other.dataSize() ? -1 : 1; diff --git a/libs/binder/include/binder/Parcel.h b/libs/binder/include/binder/Parcel.h index 5cc0830c88..e2b23be58f 100644 --- a/libs/binder/include/binder/Parcel.h +++ b/libs/binder/include/binder/Parcel.h @@ -92,7 +92,7 @@ public: LIBBINDER_EXPORTED status_t appendFrom(const Parcel* parcel, size_t start, size_t len); - LIBBINDER_EXPORTED int compareData(const Parcel& other); + LIBBINDER_EXPORTED int compareData(const Parcel& other) const; LIBBINDER_EXPORTED status_t compareDataInRange(size_t thisOffset, const Parcel& other, size_t otherOffset, size_t length, int* result) const; |