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

Commit e1208a47 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge changes I4e5db32c,I2a448282 am: 5b4e68d7 am: 021cae6f am: c63f6b05 am: ce124d3c

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

Change-Id: Iae66e4d73f6e42d705a9a0f425eee12aef73f9e3
parents c12d89c4 ce124d3c
Loading
Loading
Loading
Loading
+7 −2
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;
@@ -170,8 +173,10 @@ class ScopedAResource {
    ScopedAResource& operator=(const ScopedAResource&) = delete;

    // move-constructing/assignment is okay
    ScopedAResource(ScopedAResource&& other) : mT(std::move(other.mT)) { other.mT = DEFAULT; }
    ScopedAResource& operator=(ScopedAResource&& other) {
    ScopedAResource(ScopedAResource&& other) noexcept : mT(std::move(other.mT)) {
        other.mT = DEFAULT;
    }
    ScopedAResource& operator=(ScopedAResource&& other) noexcept {
        set(other.mT);
        other.mT = DEFAULT;
        return *this;