1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:57:45 +00:00

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
parent 6516329867
commit fb3294863e
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;