mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
LibWeb: Rename HTMLToken::doctype_data() => ensure_doctype_data()
This renames the accessor to better reflect what it does, as this will allocate a DoctypeData struct if there is none.
This commit is contained in:
parent
519a1cdc22
commit
ccae0cae45
2 changed files with 59 additions and 59 deletions
|
@ -304,7 +304,7 @@ public:
|
|||
return *ptr;
|
||||
}
|
||||
|
||||
DoctypeData& doctype_data()
|
||||
DoctypeData& ensure_doctype_data()
|
||||
{
|
||||
VERIFY(is_doctype());
|
||||
auto& ptr = m_data.get<OwnPtr<DoctypeData>>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue