mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:07:34 +00:00
LibWeb: Have MimeType::create()
match its foward declaration
This commit is contained in:
parent
6b37095ffd
commit
e80d3ff518
1 changed files with 2 additions and 2 deletions
|
@ -65,9 +65,9 @@ MimeType::MimeType(String type, String subtype)
|
||||||
|
|
||||||
MimeType::~MimeType() = default;
|
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));
|
mime_type.m_cached_essence = TRY(String::formatted("{}/{}", mime_type.m_type, mime_type.m_subtype));
|
||||||
return mime_type;
|
return mime_type;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue