Skip to content

Commit

Permalink
LibWeb: Rename HTMLToken::doctype_data() => ensure_doctype_data()
Browse files Browse the repository at this point in the history
This renames the accessor to better reflect what it does, as this will
allocate a DoctypeData struct if there is none.
  • Loading branch information
MaxWipfli authored and alimpfard committed Jul 17, 2021
1 parent 519a1cd commit ccae0ca
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion Userland/Libraries/LibWeb/HTML/Parser/HTMLToken.h
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class HTMLToken {
return *ptr;
}

DoctypeData& doctype_data()
DoctypeData& ensure_doctype_data()
{
VERIFY(is_doctype());
auto& ptr = m_data.get<OwnPtr<DoctypeData>>();
Expand Down
Loading

0 comments on commit ccae0ca

Please sign in to comment.