Skip to content

Commit e96c2b4

Browse files
author
Steven Moreland
committed
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
1 parent bad4c6e commit e96c2b4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

libs/binder/Parcel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ status_t Parcel::appendFrom(const Parcel* parcel, size_t offset, size_t len) {
683683
return err;
684684
}
685685

686-
int Parcel::compareData(const Parcel& other) {
686+
int Parcel::compareData(const Parcel& other) const {
687687
size_t size = dataSize();
688688
if (size != other.dataSize()) {
689689
return size < other.dataSize() ? -1 : 1;

libs/binder/include/binder/Parcel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Parcel {
9292

9393
LIBBINDER_EXPORTED status_t appendFrom(const Parcel* parcel, size_t start, size_t len);
9494

95-
LIBBINDER_EXPORTED int compareData(const Parcel& other);
95+
LIBBINDER_EXPORTED int compareData(const Parcel& other) const;
9696
LIBBINDER_EXPORTED status_t compareDataInRange(size_t thisOffset, const Parcel& other,
9797
size_t otherOffset, size_t length,
9898
int* result) const;

0 commit comments

Comments
 (0)