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

Commit dddb20de authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "libbinder_ndk: convenience method for okay status"

parents fb3c17bc 9450a481
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()); }
};

/**