From e96c2b445028f433e662ca47e075ce9ee2a9fb05 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Mon, 30 Sep 2024 23:30:28 +0000 Subject: 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 --- libs/binder/Parcel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/binder/Parcel.cpp') 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; -- cgit v1.2.3-59-g8ed1b