mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
Userland: Compare event MIME type list with a StringView
The following commit will port MIME types to String. Traits<String> - used in Vector::contains_slow - can't compare String type with char*, so we need to use StringView instead.
This commit is contained in:
@@ -789,7 +789,7 @@ ErrorOr<String> FileSystemModel::column_name(int column) const
|
||||
|
||||
bool FileSystemModel::accepts_drag(ModelIndex const& index, Vector<DeprecatedString> const& mime_types) const
|
||||
{
|
||||
if (!mime_types.contains_slow("text/uri-list"))
|
||||
if (!mime_types.contains_slow("text/uri-list"sv))
|
||||
return false;
|
||||
|
||||
if (!index.is_valid())
|
||||
|
||||
Reference in New Issue
Block a user