mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +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:
parent
2f35348104
commit
e75d694974
16 changed files with 16 additions and 16 deletions
|
@ -69,7 +69,7 @@ PathBreadcrumbbar::PathBreadcrumbbar(NonnullRefPtr<GUI::TextBox> location_text_b
|
|||
};
|
||||
|
||||
m_breadcrumbbar->on_segment_drag_enter = [&](size_t, GUI::DragEvent& event) {
|
||||
if (event.mime_types().contains_slow("text/uri-list"))
|
||||
if (event.mime_types().contains_slow("text/uri-list"sv))
|
||||
event.accept();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue