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

Commit e21cd392 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: disable implicit unique_fd get" am: 7795accb am: e8e37c2e

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1499179

Change-Id: I6c5caece2322f9573b169f63d2c20718a9312625
parents 85b507c3 e8e37c2e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -146,6 +146,7 @@ cc_library {
        "-Wextra",
        "-Werror",
        "-Wzero-as-null-pointer-constant",
        "-DANDROID_BASE_UNIQUE_FD_DISABLE_IMPLICIT_CONVERSION",
    ],
    product_variables: {
        binder32bit: {
+6 −6
Original line number Diff line number Diff line
@@ -43,22 +43,22 @@ public:
    android::status_t readFromParcel(const android::Parcel* parcel) override;

    inline bool operator!=(const ParcelFileDescriptor& rhs) const {
        return mFd != rhs.mFd;
        return mFd.get() != rhs.mFd.get();
    }
    inline bool operator<(const ParcelFileDescriptor& rhs) const {
        return mFd < rhs.mFd;
        return mFd.get() < rhs.mFd.get();
    }
    inline bool operator<=(const ParcelFileDescriptor& rhs) const {
        return mFd <= rhs.mFd;
        return mFd.get() <= rhs.mFd.get();
    }
    inline bool operator==(const ParcelFileDescriptor& rhs) const {
        return mFd == rhs.mFd;
        return mFd.get() == rhs.mFd.get();
    }
    inline bool operator>(const ParcelFileDescriptor& rhs) const {
        return mFd > rhs.mFd;
        return mFd.get() > rhs.mFd.get();
    }
    inline bool operator>=(const ParcelFileDescriptor& rhs) const {
        return mFd >= rhs.mFd;
        return mFd.get() >= rhs.mFd.get();
    }
private:
    android::base::unique_fd mFd;