mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Have MimeType::create() match its foward declaration
This commit is contained in:
committed by
Andreas Kling
parent
6b37095ffd
commit
e80d3ff518
@@ -65,9 +65,9 @@ MimeType::MimeType(String type, String subtype)
|
||||
|
||||
MimeType::~MimeType() = default;
|
||||
|
||||
ErrorOr<MimeType> MimeType::create(String type, String value)
|
||||
ErrorOr<MimeType> MimeType::create(String type, String subtype)
|
||||
{
|
||||
auto mime_type = MimeType { move(type), move(value) };
|
||||
auto mime_type = MimeType { move(type), move(subtype) };
|
||||
mime_type.m_cached_essence = TRY(String::formatted("{}/{}", mime_type.m_type, mime_type.m_subtype));
|
||||
return mime_type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user