Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e96c2b44 authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent bad4c6e2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;