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

Commit c9a0ab69 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

am: 2c2e8142

Change-Id: I599f62ab9f408c321ec199ea8d3c39c9c9beec84
parents 42095b9a 2c2e8142
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()); }
};

/**