mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:57:35 +00:00
Userland: Port lists of mime types to String
This commit is contained in:
parent
e75d694974
commit
9ce2682ce6
15 changed files with 18 additions and 26 deletions
|
@ -11,15 +11,6 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
Vector<DeprecatedString> MimeData::formats() const
|
||||
{
|
||||
Vector<DeprecatedString> mime_types;
|
||||
mime_types.ensure_capacity(m_data.size());
|
||||
for (auto& it : m_data)
|
||||
mime_types.unchecked_append(it.key.to_deprecated_string());
|
||||
return mime_types;
|
||||
}
|
||||
|
||||
Vector<URL> MimeData::urls() const
|
||||
{
|
||||
auto it = m_data.find("text/uri-list"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue