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

Commit 56c22732 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Merge "Add "operator bool" overload to android::sp."

am: 28ebfe18

Change-Id: Idc8a68835c6a13ab92ffce44507360c2d8e6d9e5
parents 6818f80d 28ebfe18
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -85,6 +85,7 @@ public:
    inline T&       operator* () const     { return *m_ptr; }
    inline T*       operator-> () const    { return m_ptr;  }
    inline T*       get() const            { return m_ptr; }
    inline explicit operator bool () const { return m_ptr != nullptr; }

    // Operators