1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibJS: Add Handle::operator->()

This commit is contained in:
Andreas Kling 2021-12-09 18:30:29 +01:00
parent a1580a1d00
commit fed6a76990
2 changed files with 5 additions and 2 deletions

View file

@ -53,6 +53,9 @@ public:
bool is_null() const { return m_impl.is_null(); }
T* operator->() { return cell(); }
T const* operator->() const { return cell(); }
private:
explicit Handle(NonnullRefPtr<HandleImpl> impl)
: m_impl(move(impl))