LibWeb: Return JS::NonnullGCPtr<StaticRange> instead of StaticRange*

This commit is contained in:
Kenneth Myhra 2023-02-14 20:24:29 +01:00 committed by Linus Groh
commit fb3294863e
Notes: sideshowbarker 2024-07-17 07:14:09 +09:00
2 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ class StaticRange final : public AbstractRange {
WEB_PLATFORM_OBJECT(StaticRange, AbstractRange);
public:
static WebIDL::ExceptionOr<StaticRange*> construct_impl(JS::Realm&, StaticRangeInit& init);
static WebIDL::ExceptionOr<JS::NonnullGCPtr<StaticRange>> construct_impl(JS::Realm&, StaticRangeInit& init);
StaticRange(Node& start_container, u32 start_offset, Node& end_container, u32 end_offset);
virtual ~StaticRange() override;