mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
LibWeb: Fix a few const-ness issues
This commit is contained in:
parent
70a2ca7fc0
commit
c0b2fa74ac
36 changed files with 123 additions and 121 deletions
|
@ -20,8 +20,8 @@ public:
|
|||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<AccessibilityTreeNode>> create(Document*, DOM::Node const*);
|
||||
virtual ~AccessibilityTreeNode() override = default;
|
||||
|
||||
JS::GCPtr<DOM::Node> value() const { return m_value; }
|
||||
void set_value(JS::GCPtr<DOM::Node> value) { m_value = value; }
|
||||
JS::GCPtr<DOM::Node const> value() const { return m_value; }
|
||||
void set_value(JS::GCPtr<DOM::Node const> value) { m_value = value; }
|
||||
Vector<AccessibilityTreeNode*> children() const { return m_children; }
|
||||
void append_child(AccessibilityTreeNode* child) { m_children.append(child); }
|
||||
|
||||
|
@ -31,9 +31,9 @@ protected:
|
|||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
private:
|
||||
explicit AccessibilityTreeNode(JS::GCPtr<DOM::Node>);
|
||||
explicit AccessibilityTreeNode(JS::GCPtr<DOM::Node const>);
|
||||
|
||||
JS::GCPtr<DOM::Node> m_value;
|
||||
JS::GCPtr<DOM::Node const> m_value;
|
||||
Vector<AccessibilityTreeNode*> m_children;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue