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

Commit d564a98a authored by Jiyong Park's avatar Jiyong Park
Browse files

binder_ndk: fix bugprone-unhandled-self-assignment

Bug: 162909698
Test: m checkbuild

Change-Id: I2a448282bef0a79aff62da70175e35d43da4699f
parent 4f97a8ca
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -74,6 +74,9 @@ class SpAIBinder {
     * ownership of that other object.
     */
    SpAIBinder& operator=(const SpAIBinder& other) {
        if (this == &other) {
            return *this;
        }
        AIBinder_incStrong(other.mBinder);
        set(other.mBinder);
        return *this;