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

Commit 2c2e8142 authored by Steven Moreland's avatar Steven Moreland Committed by android-build-merger
Browse files

Merge "libbinder_ndk: convenience method for okay status" am: dddb20de

am: 2843b216

Change-Id: I5d2c5dc2e598f68b5b0c0876d4ef0b3fb5e2fa3b
parents eebf61c1 2843b216
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -198,6 +198,11 @@ class ScopedAStatus : public ScopedAResource<AStatus*, void, AStatus_delete, nul
     * See AStatus_isOk.
     */
    bool isOk() { return get() != nullptr && AStatus_isOk(get()); }

    /**
     * Convenience method for okay status.
     */
    static ScopedAStatus ok() { return ScopedAStatus(AStatus_newOk()); }
};

/**