1
Fork 0
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:
Max Wipfli 2021-07-15 18:58:11 +02:00 committed by Ali Mohammad Pur
parent 519a1cdc22
commit ccae0cae45
2 changed files with 59 additions and 59 deletions

View file

@ -304,7 +304,7 @@ public:
return *ptr;
}
DoctypeData& doctype_data()
DoctypeData& ensure_doctype_data()
{
VERIFY(is_doctype());
auto& ptr = m_data.get<OwnPtr<DoctypeData>>();