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:
parent
a1580a1d00
commit
fed6a76990
2 changed files with 5 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue