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

Commit 384328e9 authored by Jiyong Park's avatar Jiyong Park
Browse files

binder: fix performance-unnecessary-value-param

Bug: 162909698
Test: m libbinder

Change-Id: I91afd69d482984138a52dda39bc68056d62a442e
parent 27019300
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -184,7 +184,6 @@ cc_library {
        "-google-default-arguments",
        "-google-explicit-constructor",
        "-google-runtime-int",
        "-performance-unnecessary-value-param",
    ],
}

+1 −1
Original line number Diff line number Diff line
@@ -1077,7 +1077,7 @@ status_t IPCThreadState::writeTransactionData(int32_t cmd, uint32_t binderFlags,

sp<BBinder> the_context_object;

void IPCThreadState::setTheContextObject(sp<BBinder> obj)
void IPCThreadState::setTheContextObject(const sp<BBinder>& obj)
{
    the_context_object = obj;
}
+1 −1
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ public:
            void                blockUntilThreadAvailable();

            // Service manager registration
            void                setTheContextObject(sp<BBinder> obj);
            void                setTheContextObject(const sp<BBinder>& obj);

            // WARNING: DO NOT USE THIS API
            //