summaryrefslogtreecommitdiff
path: root/libs/binder/Parcel.cpp
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2024-09-30 23:30:28 +0000
committer Steven Moreland <smoreland@google.com> 2024-09-30 23:30:28 +0000
commite96c2b445028f433e662ca47e075ce9ee2a9fb05 (patch)
tree70221eb3a867735eeb125d2b9b6430833a8e3aa9 /libs/binder/Parcel.cpp
parentbad4c6e29ab67c68c89d972a07950f1068974626 (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
Diffstat (limited to 'libs/binder/Parcel.cpp')
-rw-r--r--libs/binder/Parcel.cpp2
1 files changed, 1 insertions, 1 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;