1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00

Userland: Take StringView in MimeData::data() and has_{format,text,urls}

This commit is contained in:
Karol Kosek 2023-08-21 16:45:46 +02:00 committed by Sam Atkins
parent d054116012
commit 4f638d3af2
4 changed files with 9 additions and 9 deletions

View file

@ -420,8 +420,8 @@ SpreadsheetView::SpreadsheetView(Sheet& sheet)
ScopeGuard update_after_drop { [this] { update(); } };
if (event.mime_data().has_format("text/x-spreadsheet-data")) {
auto const& data = event.mime_data().data("text/x-spreadsheet-data");
if (event.mime_data().has_format("text/x-spreadsheet-data"sv)) {
auto const& data = event.mime_data().data("text/x-spreadsheet-data"sv);
StringView urls { data.data(), data.size() };
Vector<Position> source_positions, target_positions;