mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +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
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/krkk
Commit: e75d694974
Pull-request: https://github.com/SerenityOS/serenity/pull/21179
Reviewed-by: https://github.com/AtkinsSJ ✅
16 changed files with 16 additions and 16 deletions
|
@ -317,7 +317,7 @@ GUI::Window::CloseRequestDecision MainWidget::request_close()
|
|||
void MainWidget::drag_enter_event(GUI::DragEvent& event)
|
||||
{
|
||||
auto const& mime_types = event.mime_types();
|
||||
if (mime_types.contains_slow("text/uri-list"))
|
||||
if (mime_types.contains_slow("text/uri-list"sv))
|
||||
event.accept();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue